Commit c3d1878f authored by Andrew Nicols's avatar Andrew Nicols
Browse files

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

parents c7be63a4 04036046
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment