diff options
author | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2013-01-09 12:36:26 +0100 |
---|---|---|
committer | Sebastian Spaeth <Sebastian@SSpaeth.de> | 2013-01-15 20:08:21 +0100 |
commit | 7525cdf9eb1dcf8e19b340072247426d0fd570c0 (patch) | |
tree | ee57e1fc023edb7fbf808d318b0464f94275d246 | |
parent | cf764377df3c985a3f036f14562f8a8a3ed8735f (diff) | |
download | mediagoblin-7525cdf9eb1dcf8e19b340072247426d0fd570c0.tar.lz mediagoblin-7525cdf9eb1dcf8e19b340072247426d0fd570c0.tar.xz mediagoblin-7525cdf9eb1dcf8e19b340072247426d0fd570c0.zip |
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 <Sebastian@SSpaeth.de>
-rw-r--r-- | mediagoblin/tools/url.py | 2 |
1 files changed, 1 insertions, 1 deletions
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'-'): |