[wp-trac] [WordPress Trac] #19292: Not found errors due to sanitization in sanitize_title_with_dashes
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 23 21:39:36 UTC 2011
#19292: Not found errors due to sanitization in sanitize_title_with_dashes
-----------------------------+------------------
Reporter: xknown | Owner:
Type: defect (bug) | Status: new
Priority: highest omg bbq | Milestone: 3.3
Component: General | Version: 3.3
Severity: blocker | Resolution:
Keywords: has-patch |
-----------------------------+------------------
Comment (by markjaquith):
For testing:
1. Manually insert this into a post_name in the database:
{{{
foo-%c3%a5-bar-%e2%80%9cquoted-text%e2%80%9d
}}}
The first char is "å", and the ones around "quoted-text" are curly quotes
from Microsoft Word. This was the original source:
{{{
foo å bar “quoted text”
}}}
2. Once you have that in a post_name, open that post for editing. First
thing to do is hit Update without making any changes. The permalink slug
should stay the same. Verify the post is still accessible.
3. Click "Edit" next to the slug and then immediately press "OK" without
making any changes. The slug stay the same. Try another Update to verify.
4. Next, manually edit the slug, and append something (like "-appended").
On pressing OK, you should get a new, fully sanitized, like "foo-a-bar-
quoted-text-appened". Save and verify. Make sure the 301 works from the
old URL.
5. Try creating a new post or page with a title of {{{foo å bar “quoted
text”}}}. Make sure you get the newest sanitization when publishing.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19292#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list