Ticket #17052: basic_auth_for_wp_redirect.diff
File basic_auth_for_wp_redirect.diff, 504 bytes (added by , 10 years ago) |
---|
-
pluggable.php
909 909 * @return string redirect-sanitized URL 910 910 **/ 911 911 function wp_sanitize_redirect($location) { 912 $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%! ]|i', '', $location);912 $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%!\[\]@]|i', '', $location); 913 913 $location = wp_kses_no_null($location); 914 914 915 915 // remove %0d and %0a from location