[wp-trac] [WordPress Trac] #46088: URL slug is not correctly escaped in permalink preview during draft
WordPress Trac
noreply at wordpress.org
Wed Jan 23 23:18:28 UTC 2019
#46088: URL slug is not correctly escaped in permalink preview during draft
--------------------------+-----------------------------
Reporter: kirilsoshnin | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 5.0.3
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Hello,
When creating a new post draft, the special characters in the slug are not
escaped properly.
Steps to reproduce the bug:
1) Add new post
2) Write in the title: "the-test's-w/-$pecial-;chars" (without quotes)
3) Save draft
4) Open a new browser session and log back in to view the draft (optional
step)
5) The permalink preview shows: http://wptest.local/the-
test's-w--$pecial-;chars/
6) The forward slash is removed; but, the other special characters are
not.
6.b) The expected result should be: http://wptest.local/the-tests-w
-pecial-chars/
6.c) In fact, the expected result happens after the post is published.
The bug only seems to happen when the post is still in draft. However,
prior to WP5, this bug did not exist.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46088>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list