mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-21 10:40:58 +02:00
Fixed bug #43125
Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9648 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@ -2261,17 +2261,12 @@ function reapply_sid($url)
|
||||
}
|
||||
|
||||
// Remove previously added sid
|
||||
if (strpos($url, '?sid=') !== false)
|
||||
if (strpos($url, 'sid=') !== false)
|
||||
{
|
||||
$url = preg_replace('/(\?)sid=[a-z0-9]+(&|&)?/', '\1', $url);
|
||||
}
|
||||
else if (strpos($url, '&sid=') !== false)
|
||||
{
|
||||
$url = preg_replace('/&sid=[a-z0-9]+(&)?/', '\1', $url);
|
||||
}
|
||||
else if (strpos($url, '&sid=') !== false)
|
||||
{
|
||||
$url = preg_replace('/&sid=[a-z0-9]+(&)?/', '\1', $url);
|
||||
// All kind of links
|
||||
$url = preg_replace('/(\?)?(&|&)?sid=[a-z0-9]+/', '', $url);
|
||||
// if the sid was the first param, make the old second as first ones
|
||||
$url = preg_replace("/$phpEx(&|&)+?/", "$phpEx?", $url);
|
||||
}
|
||||
|
||||
return append_sid($url);
|
||||
|
Reference in New Issue
Block a user