diff options
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/sessions.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/phpBB/includes/sessions.php b/phpBB/includes/sessions.php index 14fc58c224..6449ca0467 100644 --- a/phpBB/includes/sessions.php +++ b/phpBB/includes/sessions.php @@ -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); |
