Empty commit

This commit is contained in:
Git 2012-03-09 08:00:21 +00:00
parent 3201b28b2f
commit 373706ebae

View File

@ -132,7 +132,7 @@ function local_url($Str) {
$Host = $URLInfo['host'];
// If for some reason your site does not require subdomains or contains a directory in the SITE_URL, revert to the line below.
//if($Host == NONSSL_SITE_URL || $Host == SSL_SITE_URL || $Host == 'www.'.NONSSL_SITE_URL) {
if(preg_match('/(\S+\.)*'.NONSSL_SITE_URL.'/', $Host)) {
if(empty($URLInfo['port']) && preg_match('/(\S+\.)*'.NONSSL_SITE_URL.'/', $Host)) {
$URL = $URLInfo['path'];
if(!empty($URLInfo['query'])) {
$URL.='?'.$URLInfo['query'];