Ticket #114: multiple_port.patch
| File multiple_port.patch, 0.8 kB (added by michaeltwofish, 12 months ago) |
|---|
-
system/classes/site.php
134 134 $port= $_SERVER['SERVER_PORT']; 135 135 } 136 136 $portpart= ''; 137 if ( ( $port != 80 ) && ( $port != 443 ) ) { 137 $host= $_SERVER['HTTP_HOST']; 138 // if the port isn't a standard port, and isn't part of $host already, add it 139 if ( ( $port != 80 ) && ( $port != 443 ) && ( substr($host, strlen($host) - strlen($port) ) != $port ) ) { 138 140 $portpart= ':' . $port; 139 141 } 140 142 if ( isset( $_SERVER['HTTPS'] ) ) { 141 143 $protocol= 'https'; 142 144 } 143 $url= $protocol . '://' . $ _SERVER['HTTP_HOST']. $portpart;145 $url= $protocol . '://' . $host . $portpart; 144 146 break; 145 147 case 'habari': 146 148 $url= Site::get_url( 'host' );
