Changeset 25323 for branches/3.6
- Timestamp:
- 09/10/2013 06:42:32 PM (11 years ago)
- Location:
- branches/3.6
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.6
- Property svn:mergeinfo changed
/trunk/src merged: 25318
- Property svn:mergeinfo changed
-
branches/3.6/wp-includes/functions.php
r25322 r25323 1284 1284 1285 1285 if ( $ref && $ref !== wp_unslash( $_SERVER['REQUEST_URI'] ) ) 1286 return wp_ unslash( $ref);1286 return wp_validate_redirect( $ref, false ); 1287 1287 return false; 1288 1288 } … … 1299 1299 function wp_get_original_referer() { 1300 1300 if ( !empty( $_REQUEST['_wp_original_http_referer'] ) ) 1301 return wp_ unslash( $_REQUEST['_wp_original_http_referer']);1301 return wp_validate_redirect( wp_unslash( $_REQUEST['_wp_original_http_referer'] ), false ); 1302 1302 return false; 1303 1303 } -
branches/3.6/wp-includes/pluggable.php
r24649 r25323 943 943 **/ 944 944 function wp_validate_redirect($location, $default = '') { 945 $location = trim( $location ); 945 946 // browsers will assume 'http' is your protocol, and will obey a redirect to a URL starting with '//' 946 947 if ( substr($location, 0, 2) == '//' )
Note: See TracChangeset
for help on using the changeset viewer.