From 040360468c2aa8cdf94604b3910340c711375e3d Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Mon, 15 Oct 2018 00:48:23 +0200 Subject: [PATCH] MDL-63655 core: Fix miss-placed parenthesis --- lib/classes/update/code_manager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/classes/update/code_manager.php b/lib/classes/update/code_manager.php index 9eac43bf937..3493ad427fb 100644 --- a/lib/classes/update/code_manager.php +++ b/lib/classes/update/code_manager.php @@ -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);