Ticket #36253: fix_port_in_host_header_new.diff
File fix_port_in_host_header_new.diff, 706 bytes (added by , 9 years ago) |
---|
-
src/wp-includes/class-wp-http-streams.php
69 69 70 70 if ( isset( $r['headers']['Host'] ) || isset( $r['headers']['host'] ) ) { 71 71 if ( isset( $r['headers']['Host'] ) ) 72 $arrURL['host'] = $r['headers']['Host'];72 $arrURL['host'] = preg_replace( '/:\d+$/', '', $r['headers']['Host'] ); 73 73 else 74 $arrURL['host'] = $r['headers']['host'];74 $arrURL['host'] = preg_replace( '/:\d+$/', '', $r['headers']['host'] ); 75 75 unset( $r['headers']['Host'], $r['headers']['host'] ); 76 76 } 77 77