Opened 3 years ago
Last modified 3 years ago
#59691 new defect (bug)
WordPress doesn't sanitize character ʼ (unicode U+02BC) when converting post title to slug
| Reported by: | ivanzhuck | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Formatting | Version: | 1.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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)
#2
@
3 years ago
Version 0, edited 3 years ago by
(next)
This ticket was mentioned in PR #5541 on WordPress/wordpress-develop by @ivanzhuck.
3 years 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Tried to recreate the same issue. The results are attached here
SC 1 - https://prnt.sc/Qc-iAbv4uiOA
SC 2 - https://prnt.sc/I64NUhsf-zO1
In SC 1, I copied the exact title and it seems like I successfully recreated the issue.
However, I tried to use the same character to recreate the issue like in SC 2. But it seems WordPress sanitizes the character just fine.
Maybe there's something going on with that exact text "Phʼnglui mglwʼnafh Cthulhu Rʼlyeh wgahʼnagl fhtagn".