[wp-trac] Re: [WordPress Trac] #3215: Login & Update functions everything is broken

WordPress Trac wp-trac at lists.automattic.com
Sat Oct 7 20:55:20 GMT 2006


#3215: Login & Update functions everything is broken
------------------------+---------------------------------------------------
 Reporter:  Xmion       |        Owner:  anonymous
     Type:  defect      |       Status:  new      
 Priority:  highest     |    Milestone:  2.1      
Component:  General     |      Version:  2.1      
 Severity:  critical    |   Resolution:           
 Keywords:  Blank page  |  
------------------------+---------------------------------------------------
Comment (by Xmion):

 The problem is in pluggable.php


 {{{
 // Cookie safe redirect.  Works around IIS Set-Cookie bug.
 // http://support.microsoft.com/kb/q176113/
 if ( !function_exists('wp_redirect') ) :
 function wp_redirect($location, $status = 302) {
         global $is_IIS;

         $location = preg_replace('|[^a-z0-9-~+_.?#=&;,/:%]|i', '',
 $location);
         $location = wp_kses_no_null($location);

         $strip = array('%0d', '%0a');
         $location = str_replace($strip, '', $location);

         if ( $is_IIS ) {
                 header("Refresh: 0;url=$location");
         } else {
                 status_header($status); // This causes problems on IIS
                 header("Location: $location");
         }
 }
 }}}

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3215>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list