strip out session ID from root URL

This commit is contained in:
Evan Prodromou 2010-01-11 15:09:46 -08:00
parent 4afa1ce4f3
commit 5d676352c3

View File

@ -1057,7 +1057,12 @@ function common_profile_url($nickname)
function common_root_url($ssl=false) function common_root_url($ssl=false)
{ {
return common_path('', $ssl); $url = common_path('', $ssl);
$i = strpos($url, '?');
if ($i !== false) {
$url = substr($url, 0, $i);
}
return $url;
} }
// returns $bytes bytes of random data as a hexadecimal string // returns $bytes bytes of random data as a hexadecimal string