Ticket #3166: wp_redirect_fix.diff
| File wp_redirect_fix.diff, 730 bytes (added by leflo, 7 years ago) |
|---|
-
wp-includes/pluggable.php
257 257 // Cookie safe redirect. Works around IIS Set-Cookie bug. 258 258 // http://support.microsoft.com/kb/q176113/ 259 259 if ( !function_exists('wp_redirect') ) : 260 function wp_redirect($location ) {260 function wp_redirect($location, $status = 302) { 261 261 global $is_IIS; 262 262 263 263 $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%]|i', '', $location); … … 266 266 $strip = array('%0d', '%0a'); 267 267 $location = str_replace($strip, '', $location); 268 268 269 status_header($status); 270 269 271 if ($is_IIS) 270 272 header("Refresh: 0;url=$location"); 271 273 else
