mozilla/kuma — pull request #273 by darkwing (2012-06-13 18:41:03+00:00)
Title: fix bug 764426 - Prevent slashes in slugs from form

* DO NOT MERGE *

This is an incredibly naive, n00b attempt at preventing slashes in the new/edit document forms.

We cannot add the "/" check in the DocumentForm and RevisionForm classes because any slug with a child and "/" would break any time there was a child (i.e. after the parent/child/grandchild) slug has been built. Les mentioned we'd need a new form class.

"DisallowSlugSlashForm" isn't a good form name, but I guess I'm submitting this to get some sort of feedback on how best to accomplish this.

Please keep giggles and fury to a minimum... :)