Opened 12 months ago
Last modified 12 months ago
#59691 new defect (bug)
WordPress doesn't sanitize character ʼ (unicode U+02BC) when converting post title to slug
Reported by: | ivanzhuck | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 1.0 |
Component: | Formatting | Keywords: | has-patch |
Focuses: | Cc: |
Description
WordPress doesn't sanitize character ʼ
(unicode U+02BC) when converting post title to slug
How to reproduce:
- Create a post with title "Phʼnglui mglwʼnafh Cthulhu Rʼlyeh wgahʼnagl fhtagn"
- Publish the post
- The post gets slug "phʼnglui-mglwʼnafh-cthulhu-rʼlyeh-wgahʼnagl-fhtagn" instead of "phnglui-mglwnafh-cthulhu-rlyeh-wgahnagl-fhtagn"
Attachments (1)
Change History (4)
This ticket was mentioned in PR #5541 on WordPress/wordpress-develop by @ivanzhuck.
12 months ago
#3
- Keywords has-patch added
Added apostrophe character codes to the list of symbols which must be stripped from post URL slug
It replaces characters:
ʼ
(U+02BC);
ˮ
(U+02EE);
՚
(U+055A);
ߴ
(U+07F5);
ߵ
(U+07F4);
'
(U+FF07)
with empty string.
Note: See
TracTickets for help on using
tickets.
Tried to recreate the same issue. The results are attached here
SC 1 - https://prnt.sc/Qc-iAbv4uiOA
In SC 1, I copied the exact title and it seems like I successfully recreated the issue.
Maybe there's something going on with that exact character. This one - ʼ. But not this one - '.