Changeset 30683
- Timestamp:
- 12/01/2014 03:15:24 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r30667 r30683 1191 1191 **/ 1192 1192 function wp_sanitize_redirect($location) { 1193 $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%!* ]|i', '', $location);1193 $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%!*]|i', '', $location); 1194 1194 $location = wp_kses_no_null($location); 1195 1195 -
trunk/tests/phpunit/tests/formatting/redirect.php
r28939 r30683 15 15 $this->assertEquals('http://example.com/watchthecarriagereturngo', wp_sanitize_redirect('http://example.com/watchthecarriagereturn%0%0ddgo')); 16 16 $this->assertEquals('http://example.com/watchthecarriagereturngo', wp_sanitize_redirect('http://example.com/watchthecarriagereturn%0%0DDgo')); 17 18 17 19 } 18 20 }
Note: See TracChangeset
for help on using the changeset viewer.