Fix regex to work on windows and match only mailpoet folder as valid
This commit is contained in:
@ -121,7 +121,7 @@ class RequirementsChecker {
|
||||
return $this->processError($error);
|
||||
}
|
||||
|
||||
$pattern = '#' . preg_quote(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