[wp-trac] [WordPress Trac] #21013: Badly truncated slugs in posts with similar, long non-latin titles

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 6 23:59:22 UTC 2012


#21013: Badly truncated slugs in posts with similar, long non-latin titles
-----------------------------+------------------
 Reporter:  nevma            |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  3.5
Component:  Permalinks       |     Version:  3.4
 Severity:  normal           |  Resolution:
 Keywords:  has-patch early  |
-----------------------------+------------------
Changes (by rfair404):

 * cc: rfair404 (added)


Comment:

 The latest patch seems to work for me and does seem to solve the problem.

 In my case, publishing the first post with the title works as expected.
 url generated was pretty much as expected, something like :
 http://local.dev/blog/2012/08/06/%CE%B1%CF%81%CE%BD%CE%AC%CE%BA%CE%B9-%CE%AC%CF%83%CF%80%CF%81%CE%BF-%CE%BA%CE%B1%CE%B9-%CF%80%CE%B1%CF%87%CF%8D-%CF%84%CE%B7%CF%82-%CE%BC%CE%AC%CE%BD%CE%B1%CF%82-%CF%84%CE%BF%CF%85-%CE%BA%CE%B1%CE%BC/


 Publishing the second post results in an error 400 "Bad Request" and a url
 that looks like this:
 http://local.dev/blog/2012/08/06/%ce%b1%cf%81%ce%bd%ce%ac%ce%ba%ce%b9-%ce%ac%cf%83%cf%80%cf%81%ce%bf-%ce%ba%ce%b1%ce%b9-%cf%80%ce%b1%cf%87%cf%8d-%cf%84%ce%b7%cf%82-%ce%bc%ce%ac%ce%bd%ce%b1%cf%82-%cf%84%ce%bf%cf%85-%ce%ba%ce%b1%ce%b-2/

 After applying the patch, I get a url like this:
 http://local.dev/blog/2012/08/06/%CE%B1%CF%81%CE%BD%CE%AC%CE%BA%CE%B9-%CE%AC%CF%83%CF%80%CF%81%CE%BF-%CE%BA%CE%B1%CE%B9-%CF%80%CE%B1%CF%87%CF%8D-%CF%84%CE%B7%CF%82-%CE%BC%CE%AC%CE%BD%CE%B1%CF%82-%CF%84%CE%BF%CF%85-%CE%BA%CE%B1-2/


 I even tried to add several additional posts and pages with a similar
 name, and it appears to work across post types including pages.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21013#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list