]> git.mjollnir.org Git - moodle.git/commitdiff
Strip slashes from filenames
authormoodler <moodler>
Tue, 26 Nov 2002 02:11:05 +0000 (02:11 +0000)
committermoodler <moodler>
Tue, 26 Nov 2002 02:11:05 +0000 (02:11 +0000)
lib/moodlelib.php

index ae0372c7e55543e393ab465ec40e0854779d4d00..fdb6eb0a1ab9f557a795fc0e5ac89f2411f935da 100644 (file)
@@ -1794,6 +1794,7 @@ function display_size($size) {
 }
 
 function clean_filename($string) {
+    $string = stripslashes($string);
     $string = eregi_replace("\.\.", "", $string);
     $string = eregi_replace("[^([:alnum:]|\.)]", "_", $string);
     return    eregi_replace("_+", "_", $string);