#48475 closed defect (bug) (duplicate)
Permalink includes hidden characters like U+2028
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Permalinks | Keywords: | |
Focuses: | Cc: |
Description
How to try:
Copy and paste in a title including this string from https://pastebin.com/97xBxXHk (I had to publish there because on Trac this symbols is removed).
You will see an url custom-title-number-2019%e2%80%a8/
saved.
This because the title include this https://graphemica.com/2028, it is a hidden symbol that WordPress doesn't strip away.
If you copy paste rightly the string to https://www.soscisurvey.de/tools/view-chars.php you will see this symbols.
Change History (5)
#1
@
5 years ago
- Keywords needs-patch needs-unit-tests added
- Milestone changed from Awaiting Review to 5.4
- Owner set to SergeyBiryukov
- Status changed from new to accepted
#2
@
5 years ago
- Milestone changed from 5.4 to Future Release
Hi,
With 5.4 Beta 3 approaching and the Beta period reserved for bugs introduced during the cycle, this is being moved to Future Release. If any maintainer or committer feels this should be included or wishes to assume ownership during a specific cycle, feel free to update the milestone accordingly.
#3
@
3 years ago
- Keywords reporter-feedback added
Test Report
Testing Environment:
- Browser: Safari 15.4
- Theme: Twenty Twenty-One
- Server: macOS 12.3, PHP 8.0.18 (native), Apache 2.4.53 (native)
- WordPress: 6.0-alpha-52448-src
Steps to test
- Open this page and copy the text with the hidden character.
- Paste the text here to make sure it contains the hidden character.
- Create a new WordPress post.
- Use the text above as a title.
- Save the post.
- Inspect the url (permalink) of the post.
Expected result:
The URL of the post doesn't contain the hidden character.
Actual result:
The URL of the post doesn't contain the hidden character.
@Mte90 I cannot reproduce this bug.
Could you please provide steps on how to reproduce this issue using the latest WordPress version?
Could this ticket be closed?
Thank you.
Related: #44958, #47594, #47912.