Escaped path when used in regex pattern
This commit is contained in:
@@ -122,7 +122,7 @@ class RequirementsChecker {
|
||||
return $this->processError($error);
|
||||
}
|
||||
|
||||
$pattern = '#' . Env::$path . '/#';
|
||||
$pattern = '#' . preg_quote(Env::$path) . '/#';
|
||||
$is_loaded_by_plugin = preg_match($pattern, $dependency_path);
|
||||
if(!$is_loaded_by_plugin) {
|
||||
$error = sprintf(
|
||||
|
Reference in New Issue
Block a user