Ticket #20383: 20383.patch
File 20383.patch, 659 bytes (added by , 11 years ago) |
---|
-
wp-includes/canonical.php
342 342 $redirect['path'] = preg_replace('|/' . preg_quote( $wp_rewrite->index, '|' ) . '/*?$|', '/', $redirect['path']); 343 343 344 344 // Remove trailing spaces from the path 345 $redirect['path'] = preg_replace( '#(%20| 345 $redirect['path'] = preg_replace( '#(%20|%22|%7B| |\)|!|,|;|\')+$#', '', $redirect['path'] ); 346 346 347 347 if ( !empty( $redirect['query'] ) ) { 348 348 // Remove trailing spaces from certain terminating query string args