Fix HTTPS下搜索用户跳转的bug

This commit is contained in:
NaiXiaoXin 2017-01-13 18:41:09 +08:00
parent d1b027db6c
commit 9feec11a5e
1 changed files with 2 additions and 3 deletions

View File

@ -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']) {