Commit eafcfa15 authored by Dries's avatar Dries

- Patch #4109: some URLs get ?PHPSESSID added to them.

parent 1a98fce9
......@@ -241,17 +241,6 @@ function drupal_goto($path = '', $query = NULL, $fragment = NULL) {
$url = url($path, $query, $fragment, TRUE);
if (ini_get('session.use_trans_sid') && session_id() && !strstr($url, session_id())) {
$sid = session_name() . '=' . session_id();
if (strstr($url, '?') && !strstr($url, $sid)) {
$url = $url .'&'. $sid;
}
else {
$url = $url .'?'. $sid;
}
}
// Before the redirect, allow modules to react to the end of the page request.
module_invoke_all('exit', $url);
......
......@@ -114,6 +114,7 @@
ini_set('session.save_handler', 'user');
ini_set('session.use_only_cookies', 1);
ini_set('session.use_trans_sid', 0);
ini_set('url_rewriter.tags', '');
/**
* Variable overrides:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment