Make WordPress Core

Opened 18 months ago

Last modified 18 months ago

#39517 new defect (bug)

American Cent Sign (¢) in Slugs/Permalinks Cannot be read by browser, forces 404 page

Reported by: beyondavatars Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.6.1
Component: Permalinks Keywords: reporter-feedback
Focuses: Cc:


So I am pretty tired of manually fixing this myself in the code every update so here is me contrubting finally to the community. :) I was going to make a pull request but you guys don't use github?!? No worries.

How to reproduce this:

  1. Create a post with the title "Test ¢". FYI on Mac it is option + 4 to create that symbol.
  2. Go to the post permalink.

Expected behavior: The page loads just fine. Actual behavior: 404 because the browser can't interpret ¢ in the URL.

Code fix suggestion:

"¢" => ""

Just add it here: https://github.com/WordPress/WordPress/blob/master/wp-includes/formatting.php#L1616

Looking forward to the next release. :)

Change History (4)

#1 @Presskopp
18 months ago

There are a lot more currency symbols, like Bengali Rupee Sign (U+09F3 ৳) or New Sheqel Sign (U+20AA ₪) and so on.

#2 @Otto42
18 months ago

Cent signs are allowed in URLs, and they work just fine in WordPress slugs.

Example: https://cloudup.com/cNWwTs1zGr5

You might need to escape them as %C2%A2, perhaps. But Chrome seems to have no issues with them as-is.

#3 @codegeass
18 months ago

Tested in 3 major browser and it seems Cent signs are working in three of them.

Chrome : 55.0.2883.95 (64-bit) Firefox: 50.1.0 Safari : 9.1.1 (11601.6.17)

Could you please write down your version number for browser ?


#4 @Presskopp
18 months ago

  • Keywords reporter-feedback added
Note: See TracTickets for help on using tickets.