Ticket #21602: canonical.php.patch
File canonical.php.patch, 959 bytes (added by , 12 years ago) |
---|
-
canonical.php
405 405 $redirect_url .= '?' . $redirect['query']; 406 406 } 407 407 408 if ( !$redirect_url || $redirect_url == $requested_url)408 if ( !$redirect_url || strcasecmp($redirect_url, $requested_url) == 0 ) 409 409 return false; 410 410 411 411 // Hex encoded octets are case-insensitive. … … 421 421 // Note that you can use the "redirect_canonical" filter to cancel a canonical redirect for whatever reason by returning false 422 422 $redirect_url = apply_filters('redirect_canonical', $redirect_url, $requested_url); 423 423 424 if ( !$redirect_url || $redirect_url == $requested_url) // yes, again -- in case the filter aborted the request424 if ( !$redirect_url || strcasecmp($redirect_url, $requested_url) == 0 ) // yes, again -- in case the filter aborted the request 425 425 return false; 426 426 427 427 if ( $do_redirect ) {