]> git.mjollnir.org Git - moodle.git/commitdiff
Handle resource names with slashes better
authormoodler <moodler>
Mon, 10 May 2004 16:10:55 +0000 (16:10 +0000)
committermoodler <moodler>
Mon, 10 May 2004 16:10:55 +0000 (16:10 +0000)
mod/resource/details.php

index 618f4b9de9ac1868138667d266752731f49f92cf..3a05c58619a086570fe3ded8999de716e64c3a89 100644 (file)
@@ -26,6 +26,8 @@
         $strexample  = get_string("example", "resource");
         $strresources = get_string("modulenameplural", "resource");
 
+        $form->name = s($form->name);   // remove slashes
+
         print_header("$course->shortname: $strediting", "$course->shortname: $strediting",
                       "<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> -> 
                        <a href=\"index.php?id=$course->id\">$strresources</a> -> $form->name ($stredit)");