MDL-63655 core: Fix miss-placed parenthesis

This commit is contained in:
Eloy Lafuente (stronk7)
2018-10-15 01:02:51 +02:00
parent 18c5565a1e
commit f29fda6b3e
+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);