[wp-trac] [WordPress Trac] #20434: cURL fails to follow redirects sometimes

WordPress Trac wp-trac at lists.automattic.com
Thu May 3 00:44:54 UTC 2012


#20434: cURL fails to follow redirects sometimes
-----------------------------------------------+------------------
 Reporter:  evansolomon                        |       Owner:
     Type:  defect (bug)                       |      Status:  new
 Priority:  high                               |   Milestone:  3.4
Component:  HTTP                               |     Version:  3.4
 Severity:  critical                           |  Resolution:
 Keywords:  needs-unit-tests has-patch commit  |
-----------------------------------------------+------------------

Comment (by dd32):

 > How does 20434.diff  look?

 Won't work for `Location: redirect.php` in subdirectories, To be clear, I
 was purely thinking of skipping `../index.php` style url's.

 The order I would expect to see the popularity of redirect types would be:
 {{{
 1. http://absolute.url/
 2. /root/relative/path.ext
 3. file-in-same-dir.ext
 4. ../file-up-a-directory.ext
 }}}

 Until recently I'm pretty sure Core used version 3 in a few spots in the
 admin, and it's reasonably common elsewhere I've seen. Number 4 is edge,
 used, but edge.

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


More information about the wp-trac mailing list