Opened 7 years ago
Last modified 6 years ago
#43571 reviewing defect (bug)
`add_feed` with regex characters breaks rewrite rules
Reported by: | soulseekah | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | |
Component: | Rewrite Rules | Keywords: | has-patch needs-unit-tests |
Focuses: | Cc: |
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 (5)
Note: See
TracTickets for help on using
tickets.
Patch needs unit tests and reviewing.