Fix HTTPS下搜索用户跳转的bug
This commit is contained in:
parent
d1b027db6c
commit
9feec11a5e
|
@ -15,14 +15,13 @@ define('NOROBOT', TRUE);
|
|||
|
||||
$url = '';
|
||||
if($_G['setting']['domain']['app']['home'] || $_G['setting']['domain']['app']['default']) {
|
||||
$port = empty($_SERVER['SERVER_PORT']) || $_SERVER['SERVER_PORT'] == '80' ? '' : ':'.$_SERVER['SERVER_PORT'];
|
||||
$domain = '';
|
||||
if($_G['setting']['domain']['app']['home']) {
|
||||
$domain = $_G['setting']['domain']['app']['home'];
|
||||
} else {
|
||||
$domain = $_G['setting']['domain']['app']['default'];
|
||||
}
|
||||
$url = 'http://'.$domain.$port.'/';
|
||||
$url = $_G['scheme'].'://'.$domain.$_G['siteport'].'/';
|
||||
}
|
||||
$url .= 'home.php?mod=spacecp&ac=search';
|
||||
if($_GET['srchtxt']) {
|
||||
|
@ -31,4 +30,4 @@ if($_GET['srchtxt']) {
|
|||
|
||||
dheader('Location: '.$url);
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue