#24623 closed defect (bug) (fixed)
Redirection goes wrong with an additional parameter at /?feed=rss
Reported by: | sweetie089 | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 3.6 | Priority: | normal |
Severity: | normal | Version: | 3.3 |
Component: | Canonical | Keywords: | has-patch |
Focuses: | Cc: |
Description
If a permalink accesses "/?feed=rss&foo=bar" in the state of being invalid, it will redirect to "/?feed=rss2 foo=bar" and "404 Not Found" will be displayed.
procedure for reproducing:
- If a permalink is effective, repeal.
- Delete cash of a browser.
- "http://DOMAIN/?feed=rss&withcomments=1" is accessed.
Result:
- "404 Not Found" is displayed.
The cause was carrying out the miswritten word of the backreference by preg_replace.
patch is miswritten word correction simply.
Attachments (2)
Change History (8)
#2
@
11 years ago
- Component changed from Feeds to Canonical
- Milestone changed from Awaiting Review to 3.6
Confirmed. If permalinks are disabled, /?feed=rss&withcomments=1
redirects to /?feed=rss2withcomments=1
.
Introduced in [18537]. The patch and the test both look good.
#3
@
11 years ago
In 1297/tests:
Note: See
TracTickets for help on using
tickets.
I am sorry, the file was mistaken.