Skip to content
Snippets Groups Projects
Unverified Commit 7836dd00 authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Use strpos() instead of stripos(). No difference in casing should ever happen here.

parent 8ead4a5e
No related branches found
No related tags found
No related merge requests found
......@@ -229,7 +229,7 @@ class Module
* Contributed by Travis Hegner.
*/
$script = "/$module/$url";
if (stripos($request->getScriptName(), $script) === false) {
if (strpos($request->getScriptName(), $script) === false) {
$request->server->set('SCRIPT_NAME', $request->getScriptName().'/'.$module.'/'.$url);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment