forked from GNUsocial/gnu-social
a little better query handling in redirect code
This commit is contained in:
parent
f809663245
commit
8c24a3bc92
@ -95,18 +95,6 @@ class Status_network extends DB_DataObject
|
||||
$destination = 'http://'.$this->hostname;
|
||||
$destination .= $_SERVER['REQUEST_URI'];
|
||||
|
||||
$args = $_GET;
|
||||
|
||||
if (isset($args['p'])) {
|
||||
unset($args['p']);
|
||||
}
|
||||
|
||||
$query = http_build_query($args);
|
||||
|
||||
if (strlen($query) > 0) {
|
||||
$destination .= '?' . $query;
|
||||
}
|
||||
|
||||
$old = 'http'.
|
||||
(($_SERVER['HTTPS'] == 'on') ? 'S' : '').
|
||||
'://'.
|
||||
|
Loading…
Reference in New Issue
Block a user