#16890 closed defect (bug) (fixed)
Mutliple Location response headers can trigger notices
Reported by: | hakre | Owned by: | dd32 |
---|---|---|---|
Milestone: | 3.7 | Priority: | normal |
Severity: | normal | Version: | |
Component: | HTTP API | Keywords: | has-patch has-unit-tests |
Focuses: | Cc: |
Description
The current implementation for manual cUrl redirects (safemode / openbasedir restrictions, see #11305) will do notices and fail if a response contains more than one location response header.
Technically this is possible.
In the RFC I have not found any definition so far wether or not this is violating any standard or not not. Next to that I could gather no information how a HTTP client should interprete such a response.
For my fix I will prefer the first location header over any additional one.
Attachments (2)
Change History (10)
#5
@
11 years ago
Added unit tests in http://core.trac.wordpress.org/changeset/1329/tests
#6
@
11 years ago
- Owner set to dd32
- Resolution set to fixed
- Status changed from new to closed
In 24846:
This ticket was mentioned in PR #3738 on WordPress/wordpress-develop by @peterwilsoncc.
21 months ago
#7
- Keywords has-unit-tests added
Note: See
TracTickets for help on using
tickets.
Quick Fix near parsing