Ticket #20143: 20143.diff
File 20143.diff, 1.4 KB (added by , 13 years ago) |
---|
-
wp-includes/canonical.php
292 292 unset( $_parsed_query['name'] ); 293 293 } 294 294 295 $_parsed_query = array_map( 'rawurlencode',$_parsed_query );295 $_parsed_query = rawurlencode_deep( $_parsed_query ); 296 296 $redirect_url = add_query_arg( $_parsed_query, $redirect_url ); 297 297 } 298 298 -
wp-includes/formatting.php
1339 1339 /** 1340 1340 * Navigates through an array and encodes the values to be used in a URL. 1341 1341 * 1342 * Uses a callback to pass the value of the array back to the function as a1343 * string.1344 1342 * 1345 1343 * @since 2.2.0 1346 1344 * … … 1353 1351 } 1354 1352 1355 1353 /** 1354 * Navigates through an array and raw encodes the values to be used in a URL. 1355 * 1356 * @since 3.4.0 1357 * 1358 * @param array|string $value The array or string to be encoded. 1359 * @return array|string $value The encoded array (or string from the callback). 1360 */ 1361 function rawurlencode_deep( $value ) { 1362 return is_array( $value ) ? array_map( 'rawurlencode_deep', $value ) : rawurlencode( $value ); 1363 } 1364 1365 /** 1356 1366 * Converts email addresses characters to HTML entities to block spam bots. 1357 1367 * 1358 1368 * @since 0.71