From 7525cdf9eb1dcf8e19b340072247426d0fd570c0 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Wed, 9 Jan 2013 12:36:26 +0100 Subject: [PATCH] Disallow ":" as part of a media slug We might want to use "id:IDN" as a special case slug to point to a media's id. Signed-off-by: Sebastian Spaeth --- mediagoblin/tools/url.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mediagoblin/tools/url.py b/mediagoblin/tools/url.py index 8604ad5f..d9179f9e 100644 --- a/mediagoblin/tools/url.py +++ b/mediagoblin/tools/url.py @@ -25,7 +25,7 @@ except ImportError: USING_TRANSLITCODEC = False -_punct_re = re.compile(r'[\t !"#$%&\'()*\-/<=>?@\[\\\]^_`{|},.]+') +_punct_re = re.compile(r'[\t !"#:$%&\'()*\-/<=>?@\[\\\]^_`{|},.]+') def slugify(text, delim=u'-'):