[wp-trac] [WordPress Trac] #16139: Follow Refresh: Headers in Snoopy

WordPress Trac wp-trac at lists.automattic.com
Fri Jan 7 16:50:16 UTC 2011


#16139: Follow Refresh: Headers in Snoopy
----------------------------------+------------------------------
 Reporter:  simsmaster            |       Owner:
     Type:  defect (bug)          |      Status:  reopened
 Priority:  normal                |   Milestone:  Awaiting Review
Component:  External Libraries    |     Version:  3.0.4
 Severity:  normal                |  Resolution:
 Keywords:  snoopy, iis, refresh  |
----------------------------------+------------------------------

Comment (by simsmaster):

 A quick fix:
 Line 867 must be
 {{{
 if(preg_match("/^(Location:|URI:|Refresh:)/i",$currentHeader))
 }}}

 and line 870 must be
 {{{
 preg_match("/^(Location:|URI:|Refresh:[ ]+[0-9]+;[ ]*url=)[
 ]*(.*)/i",chop($currentHeader),$matches);
 }}}

 Both in wp-include/class-snoopy.php. I´m not really good at this regex
 stuff, but it works for me...

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16139#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list