Changeset 33707
- Timestamp:
- 08/22/2015 05:04:17 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r33664 r33707 1233 1233 )/x'; 1234 1234 $location = preg_replace_callback( $regex, '_wp_sanitize_utf8_in_redirect', $location ); 1235 $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%!*\[\]() ]|i', '', $location);1235 $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%!*\[\]()@]|i', '', $location); 1236 1236 $location = wp_kses_no_null($location); 1237 1237 -
trunk/tests/phpunit/tests/formatting/redirect.php
r31587 r33707 19 19 $this->assertEquals('http://[2606:2800:220:6d:26bf:1447:aa7]/', wp_sanitize_redirect('http://[2606:2800:220:6d:26bf:1447:aa7]/')); 20 20 $this->assertEquals('http://example.com/search.php?search=(amistillhere)', wp_sanitize_redirect('http://example.com/search.php?search=(amistillhere)')); 21 $this->assertEquals('http://example.com/@username', wp_sanitize_redirect('http://example.com/@username')); 21 22 } 22 23 }
Note: See TracChangeset
for help on using the changeset viewer.