Opened 8 years ago
Last modified 2 months ago
#43571 reviewing defect (bug)
`add_feed` with regex characters breaks rewrite rules
| Reported by: | soulseekah | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | Future Release |
| Component: | Rewrite Rules | Version: | |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
Description
add_rule( 'test.json', ... ) does not get escaped with preg_quote. Fine for this example, but something like add_rule( 'test[json]', ... ) will definitely yield unexpected results. Something like add_rule( 'test???', ... ) will break the whole feed (maybe even more) regular expression.
Attachments (1)
Change History (6)
This ticket was mentioned in PR #12473 on WordPress/wordpress-develop by @sainathpoojary.
2 months ago
#5
- Keywords has-unit-tests added; needs-unit-tests removed
Trac ticket: #43571
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch needs unit tests and reviewing.