Skip to content

Commit

Permalink
Changing strpos to stripos for windows env.
Browse files Browse the repository at this point in the history
  • Loading branch information
adunsulag committed Apr 22, 2023
1 parent ac93d8f commit f7136de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/ModulesApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public static function filterSafeLocalModuleFiles(array $files): array
// we need to strip that out and then check against the real path
$scriptSrcPath = parse_url($scriptSrc, PHP_URL_PATH);
// need to remove the web root as that is included in the $scriptSrc and also in the fileroot
$pos = strpos($scriptSrcPath, $GLOBALS['web_root']);
$pos = stripos($scriptSrcPath, $GLOBALS['web_root']);
if ($pos !== false) {
$scriptSrcPathWithoutWebroot = substr_replace($scriptSrcPath, '', $pos, strlen($GLOBALS['web_root']));
} else {
Expand Down

0 comments on commit f7136de

Please sign in to comment.