Sanitize slug input on media edit
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Wed, 9 Jan 2013 11:38:08 +0000 (12:38 +0100)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Fri, 18 Jan 2013 20:24:19 +0000 (21:24 +0100)
commit9e9d90832511ec57f01e0e4619d8ad844c944467
tree9a281bef69331fad0b997b24a5eaea2b8923c70f
parentd92fbdc4ea23ed5bc4f439358d83bee01b76b964
Sanitize slug input on media edit

Previously we allowed EVERYTHING, even slashes as slug when editing the media.
Make sure we slugify the input to sanitize it.

(+ string formdata is unicode, so there is no need to convert it)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
mediagoblin/edit/views.py