MDL-22584 fixed non standard space char breaking file upgrades
authorPetr Skoda <skodak@moodle.org>
Mon, 1 Nov 2010 16:00:47 +0000 (16:00 +0000)
committerPetr Skoda <skodak@moodle.org>
Mon, 1 Nov 2010 16:00:47 +0000 (16:00 +0000)
lib/db/upgradelib.php

index 17ac87d..74d0ba3 100644 (file)
@@ -325,7 +325,7 @@ function upgrade_migrate_files_course($context, $path, $delete) {
                 continue;
             }
 
-            if ($textlib->strlen($filepath) > 255) {
+            if ($textlib->strlen($filepath) > 255) {
                 echo $OUTPUT->notification(" File path longer than 255 chars, skipping: ".$fullpathname.$item->getFilename());
                 continue;
             }