mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Ensure realpath returns a string for stripos
[Deprecated] stripos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
This commit is contained in:
parent
a9c05f3287
commit
2169891651
@ -271,7 +271,8 @@ class ModuleManifest
|
||||
$modules = ModuleLoader::inst()->getManifest()->getModules();
|
||||
foreach ($modules as $module) {
|
||||
// Check if path is in module
|
||||
if (stripos($path, realpath($module->getPath())) !== 0) {
|
||||
$realPath = realpath($module->getPath());
|
||||
if ($realPath && stripos($path, $realPath) !== 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user