MDL-24290, REPOSITORY revert previous changes on urlencode
authorDongsheng Cai <unoter@gmail.com>
Mon, 4 Oct 2010 09:35:14 +0000 (09:35 +0000)
committerDongsheng Cai <unoter@gmail.com>
Mon, 4 Oct 2010 09:35:14 +0000 (09:35 +0000)
repository/upload/lib.php

index bd1f9df..ef682d7 100755 (executable)
@@ -80,7 +80,7 @@ class repository_upload extends repository {
         }
 
         if (empty($saveas_filename)) {
-            $record->filename = clean_param(urldecode($_FILES[$elname]['name']), PARAM_FILE);
+            $record->filename = clean_param($_FILES[$elname]['name'], PARAM_FILE);
         } else {
             $record->filename = $saveas_filename;
         }