hmans / schnitzelpress

A lean, mean blogging machine for hackers and fools.
http://schnitzelpress.org
MIT License
77 stars 8 forks source link

Edit post UI: Disallow slashes in URL slug field #32

Closed czottmann closed 12 years ago

czottmann commented 12 years ago

It's possible to add slashes to the URL slug field, resulting in 404s later on.

Example: create a post, add a date, set the URL slug to "a/b/c/test-post", try to visit the resulting page.

These should be filtered out or transformed or at least be mentioned at some point.

hmans commented 12 years ago

This is a feature, not a bug (allowing you to set up a faux directory structure with your static pages). In fact, a/b/c/test-post not working is a bug; that specific URL will currently be handled by the /:year/:month/:day/:slug route, which I need to fix. Thanks!