mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #9471 from mattclegg/1587213647
BUGFIX: Ensure realpath returns a string for stripos
This commit is contained in:
commit
99b63b6bb8
@ -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