Changeset 30684
- Timestamp:
- 12/01/2014 03:20:13 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
src/wp-includes/pluggable.php (modified) (1 diff)
-
tests/phpunit/tests/formatting/redirect.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r30683 r30684 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
r30683 r30684 17 17 $this->assertEquals('http://example.com/whyisthisintheurl/?param[1]=foo', wp_sanitize_redirect('http://example.com/whyisthisintheurl/?param[1]=foo')); 18 18 $this->assertEquals('http://[2606:2800:220:6d:26bf:1447:aa7]/', wp_sanitize_redirect('http://[2606:2800:220:6d:26bf:1447:aa7]/')); 19 $this->assertEquals('http://example.com/search.php?search=(amistillhere)', wp_sanitize_redirect('http://example.com/search.php?search=(amistillhere)')); 19 20 } 20 21 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)