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