Merge branch 'MDL-63655_35' of git://github.com/stronk7/moodle into MOODLE_35_STABLE

This commit is contained in:
Andrew Nicols
2018-10-25 14:56:58 +08:00
+1 -1
View File
@@ -328,7 +328,7 @@ class code_manager {
if ($fileinfo->getFilename() === '..') {
continue;
}
if (strpos($fileinfo->getRealPath(), $folderpathinfo->getRealPath() !== 0)) {
if (strpos($fileinfo->getRealPath(), $folderpathinfo->getRealPath()) !== 0) {
throw new moodle_exception('unexpected_filepath_mismatch', 'core_plugin');
}
$key = substr($fileinfo->getRealPath(), $strip);