diff -urN wordpress-3.0.3.orig//wp-includes/ms-settings.php wordpress-3.0.3/wp-includes/ms-settings.php
old
|
new
|
|
26 | 26 | |
27 | 27 | if ( !isset( $current_site ) || !isset( $current_blog ) ) { |
28 | 28 | |
| 29 | $_SERVER['HTTP_HOST'] = preg_replace( '|:\d+$|', '', $_SERVER['HTTP_HOST'] ); |
29 | 30 | $domain = addslashes( $_SERVER['HTTP_HOST'] ); |
30 | | if ( false !== strpos( $domain, ':' ) ) { |
31 | | if ( substr( $domain, -3 ) == ':80' ) { |
32 | | $domain = substr( $domain, 0, -3 ); |
33 | | $_SERVER['HTTP_HOST'] = substr( $_SERVER['HTTP_HOST'], 0, -3 ); |
34 | | } elseif ( substr( $domain, -4 ) == ':443' ) { |
35 | | $domain = substr( $domain, 0, -4 ); |
36 | | $_SERVER['HTTP_HOST'] = substr( $_SERVER['HTTP_HOST'], 0, -4 ); |
37 | | } else { |
38 | | wp_die( /*WP_I18N_NO_PORT_NUMBER*/'Multisite only works without the port number in the URL.'/*/WP_I18N_NO_PORT_NUMBER*/ ); |
39 | | } |
40 | | } |
41 | 31 | |
42 | 32 | $domain = rtrim( $domain, '.' ); |
43 | 33 | $cookie_domain = $domain; |