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

WordPress Trac wp-trac at lists.automattic.com
Tue May 1 10:23:16 UTC 2012


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

Comment (by dd32):

 I'm not happy with the combining logic in that patch, primarily for the
 ../ case, which is the only edgecase that would really cause an issue

 I've just taken a look around, and this code (once create_function is
 removed) looks like it might fit the bill better: http://www.liranuna.com
 /php-path-resolution-class-relative-paths-made-easy/ (license:
 [http://sam.zoy.org/wtfpl/ WTFPL]) or http://bsd-noobz.com/blog/php-
 script-for-converting-relative-to-absolute-url (license: Not stated)

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


More information about the wp-trac mailing list