Sanitize slug input on media edit
authorSebastian Spaeth <Sebastian@SSpaeth.de>
Wed, 9 Jan 2013 11:38:08 +0000 (12:38 +0100)
committerSebastian Spaeth <Sebastian@SSpaeth.de>
Tue, 15 Jan 2013 19:08:21 +0000 (20:08 +0100)
commit4ca0755ab63192b9a79c1152673bfeb19e45e8a1
tree3a6e52383d15f92364b60b056d7c4cafec80fc3b
parent7525cdf9eb1dcf8e19b340072247426d0fd570c0
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