a little better query handling in redirect code

This commit is contained in:
Evan Prodromou 2009-06-15 16:55:01 -07:00
parent f809663245
commit 8c24a3bc92

View File

@ -95,18 +95,6 @@ class Status_network extends DB_DataObject
$destination = 'http://'.$this->hostname; $destination = 'http://'.$this->hostname;
$destination .= $_SERVER['REQUEST_URI']; $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'. $old = 'http'.
(($_SERVER['HTTPS'] == 'on') ? 'S' : ''). (($_SERVER['HTTPS'] == 'on') ? 'S' : '').
'://'. '://'.