Make WordPress Core

Opened 7 years ago

Closed 5 years ago

Last modified 5 years ago

#39517 closed defect (bug) (worksforme)

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

Reported by: beyondavatars's profile beyondavatars Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.6.1
Component: Permalinks Keywords: reporter-feedback
Focuses: Cc:

Description

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 (6)

#1 @Presskopp
7 years 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
7 years 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
7 years 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 ?

best,

#4 @Presskopp
7 years ago

  • Keywords reporter-feedback added

#5 @Presskopp
5 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

#6 @ocean90
5 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.