mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-07 01:06:48 +02:00
Various changes to location redirection ... please note the format and name changes
git-svn-id: file:///svn/phpbb/trunk@1190 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -416,14 +416,13 @@ function session_end($session_id, $user_id)
|
||||
// around every single URL and form action. If you replace the session
|
||||
// code you must include this routine, even if it's empty.
|
||||
//
|
||||
function append_sid($url)
|
||||
function append_sid($url, $non_html_amp = false)
|
||||
{
|
||||
global $SID;
|
||||
|
||||
if(!empty($SID) && !eregi("sid=", $url))
|
||||
{
|
||||
// $url = ereg_replace("[&?]+$", "", $url);
|
||||
$url .= ( (strpos($url, "?") != false) ? "&" : "?" ) . $SID;
|
||||
$url .= ( (strpos($url, "?") != false) ? ( ( $non_html_amp ) ? "&" : "&" ) : "?" ) . $SID;
|
||||
}
|
||||
|
||||
return($url);
|
||||
|
Reference in New Issue
Block a user