mirror of
https://github.com/typecho/typecho.git
synced 2025-03-19 01:19:40 +01:00
fix port number
This commit is contained in:
parent
f28e909987
commit
cca53464df
@ -222,8 +222,7 @@ class Typecho_Request
|
||||
self::$_urlPrefix == __TYPECHO_URL_PREFIX__;
|
||||
} else {
|
||||
self::$_urlPrefix = (self::isSecure() ? 'https' : 'http') . '://'
|
||||
. (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME']
|
||||
. (empty($_SERVER['SERVER_PORT']) || in_array($_SERVER['SERVER_PORT'], array(80, 443)) ? '' : ':' . $_SERVER['SERVER_PORT']));
|
||||
. (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_SERVER['SERVER_NAME']);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user