#16890 closed defect (bug) (fixed)
Mutliple Location response headers can trigger notices
| Reported by: | hakre | Owned by: | dd32 |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.7 |
| Component: | HTTP API | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
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
@
13 years ago
Added unit tests in http://core.trac.wordpress.org/changeset/1329/tests
This ticket was mentioned in PR #3738 on WordPress/wordpress-develop by @peterwilsoncc.
4 years ago
#7
- Keywords has-unit-tests added
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Quick Fix near parsing