[wp-trac] [WordPress Trac] #44085: url_encode($string) does not encode dashes properly
WordPress Trac
noreply at wordpress.org
Tue May 15 08:05:49 UTC 2018
#44085: url_encode($string) does not encode dashes properly
-------------------------------------------------+-------------------------
Reporter: sjcglads | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version: 4.9.5
Severity: normal | Resolution: invalid
Keywords: needs-screenshots needs-patch | Focuses: coding-
needs-testing | standards
-------------------------------------------------+-------------------------
Changes (by johnbillion):
* status: new => closed
* resolution: => invalid
* milestone: Awaiting Review =>
Comment:
Hi @sjcglads , welcome to WordPress Trac.
Are you talking about the `urlencode()` function? If so, this is part of
PHP, not WordPress.
Regardless, the problem is actually because your post title has had its
entities HTML encoded before being passed to the email link. You need to
run `html_entity_decode()` on the post title beforehand.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44085#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list