Changeset 28939
- Timestamp:
- 07/01/2014 03:55:04 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r28903 r28939 1161 1161 **/ 1162 1162 function wp_sanitize_redirect($location) { 1163 $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%! ]|i', '', $location);1163 $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%!*]|i', '', $location); 1164 1164 $location = wp_kses_no_null($location); 1165 1165 -
trunk/tests/phpunit/tests/formatting/redirect.php
r25002 r28939 11 11 $this->assertEquals('http://example.com/watchthecarriagereturngo', wp_sanitize_redirect('http://example.com/watchthecarriagereturn%0Dgo')); 12 12 $this->assertEquals('http://example.com/watchthecarriagereturngo', wp_sanitize_redirect('http://example.com/watchthecarriagereturn%0dgo')); 13 $this->assertEquals('http://example.com/watchtheallowedcharacters-~+_.?#=&;,/:%!*stay', wp_sanitize_redirect('http://example.com/watchtheallowedcharacters-~+_.?#=&;,/:%!*stay')); 13 14 //Nesting checks 14 15 $this->assertEquals('http://example.com/watchthecarriagereturngo', wp_sanitize_redirect('http://example.com/watchthecarriagereturn%0%0ddgo'));
Note: See TracChangeset
for help on using the changeset viewer.