]> git.mjollnir.org Git - moodle.git/commitdiff
Fix resource names properly
authormoodler <moodler>
Mon, 17 May 2004 15:36:47 +0000 (15:36 +0000)
committermoodler <moodler>
Mon, 17 May 2004 15:36:47 +0000 (15:36 +0000)
mod/resource/details.php

index a93a1a5650ea8d79d60a0ed3b72875582b519203..0836c1572b317efe4cc400a9ad1b0f94822d6def 100644 (file)
@@ -26,7 +26,7 @@
         $strexample  = get_string("example", "resource");
         $strresources = get_string("modulenameplural", "resource");
 
-        $form->name = s($form->name);   // remove slashes
+        $form->name = stripslashes($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> ->