Ticket #39880: 39880.patch
File 39880.patch, 970 bytes (added by , 8 years ago) |
---|
-
canonical.php
441 441 442 442 // Ignore differences in host capitalization, as this can lead to infinite redirects 443 443 // Only redirect no-www <=> yes-www 444 if ( strtolower($original['host']) == strtolower($redirect['host']) ||444 if ( isset( $original['host'] ) && isset( $redirect['host'] ) && strtolower($original['host']) == strtolower($redirect['host']) || 445 445 ( strtolower($original['host']) != 'www.' . strtolower($redirect['host']) && 'www.' . strtolower($original['host']) != strtolower($redirect['host']) ) ) 446 446 $redirect['host'] = $original['host']; 447 447 448 $compare_original = array( $original['host'], $original['path'] ); 448 if ( isset( $original['host'] ) ) 449 $compare_original = array( $original['host'], $original['path'] ); 449 450 450 451 if ( !empty( $original['port'] ) ) 451 452 $compare_original[] = $original['port'];