forked from GNUsocial/gnu-social
strip out session ID from root URL
This commit is contained in:
parent
92deb35bc4
commit
3b007934e4
@ -1052,7 +1052,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
|
||||||
|
Loading…
Reference in New Issue
Block a user