Ticket #8904: 8904.patch
| File 8904.patch, 539 bytes (added by hakre, 4 years ago) |
|---|
-
wp-includes/pluggable.php
876 876 * @return string redirect-sanitized URL 877 877 **/ 878 878 function wp_sanitize_redirect($location) { 879 $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:% ]|i', '', $location);879 $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%!]|i', '', $location); 880 880 $location = wp_kses_no_null($location); 881 881 882 882 // remove %0d and %0a from location
