[wp-trac] [WordPress Trac] #20219: GET - Too many redirects

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 14 10:40:17 UTC 2012


#20219: GET - Too many redirects
--------------------------+------------------------------
 Reporter:  Workshopshed  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  HTTP          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by Workshopshed):

 Dion, based on your comments, I came up with the attached version 2. I
 can't see any documentation on what happens when the curl is using
 CURLOPT_FOLLOWLOCATION  and exceeds it's maximum redirects so I've assumed
 that the existing check is valid. To simplify the code I added a variable
 $autoredirect and then use that to control the latest checks so we should
 have the correct behaviour for safe and nonsafe modes.

 I see from the other threads that you have some kind of unit test to put
 this through, and a url for testing redirects so if you could let me now
 how that goes.

 cheers,

 Andy

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


More information about the wp-trac mailing list