Changes between Initial Version and Version 1 of Ticket #49510
- Timestamp:
- 02/25/2020 11:05:59 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #49510 – Description
initial v1 3 3 1. Go to ''Settings > Permalinks'', search for the ''Category base'' and/or a ''Tag base'' with some [RegExp meta-characters](https://www.php.net/manual/en/regexp.reference.meta.php), for example: 4 4 5 [[Image( set-permalinks.png)]]5 [[Image(permalinks.png)]] 6 6 7 7 2. Try to access a category archive page, either by typing its URL directly in your web browser, or by clicking on a generated link for this category: … … 11 11 3. Same for tag archive page: 12 12 13 [[Image( category-base.png)]]13 [[Image(tag-page.png)]] 14 14 15 I've done some research, and it seems that a similar bug happen with feeds URL: https://core.trac.wordpress.org/ticket/4357115 I've done some research, and it seems that a similar bug happen with feeds URL: #43571 16 16 17 17 The proposed solution in the above patch is to escape the rewrite rules with PHP built in function `preg_quote()`, which would solve this problem too if we apply it in the correct location. But what is the correct location? And could other parts of the rewrite rules generation/evaluation benefits of escaping too?