mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Bugtracker #4169 - Possible fix for redirect not working
This commit is contained in:
@@ -33,12 +33,9 @@ if (!function_exists('file_put_contents')) {
|
|||||||
|
|
||||||
|
|
||||||
if (!function_exists('stripos')) {
|
if (!function_exists('stripos')) {
|
||||||
function stripos($haystack, $needle) {
|
function stripos($str,$needle,$offset=0)
|
||||||
$parts = explode(strtolower($needle), strtolower($haystack), 2);
|
{
|
||||||
if (count($parts) == 1) {
|
return strpos(strtolower($str), strtolower($needle), $offset);
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return strlen($parts[0]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user