[wp-trac] [WordPress Trac] #16374: Flawed handling of some characters in %postname% and %pagename%

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 26 10:12:35 UTC 2011


#16374: Flawed handling of some characters in %postname% and %pagename%
---------------------------+-----------------------------
 Reporter:  solarissmoke   |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Rewrite Rules  |    Version:  3.1
 Severity:  minor          |   Keywords:
---------------------------+-----------------------------
 Say I write a post whose url is
 `http://example.com/wp/2011/01/hello-world/`

 All of the following requests cause wordpress to generate a 200 response
 and display the "Hello World" post:

 `http://example.com/wp/2011/01/-hello-world/`
 `http://example.com/wp/2011/01/-hello-world--/`
 `http://example.com/wp/2011/01/.-hello-world.--/`

 Same for pages. Basically, hyphens and dots (and possibly other
 characters) before/after the actual slug are just ignored.

 Wordpress should either be 404'ing or redirecting such requests to the
 posts actual URL.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16374>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list