From: Ansgar Burchardt Date: Fri, 8 Aug 2014 08:38:15 +0000 (+0200) Subject: daklib/regexes.py: Do not allow colons in filenames. X-Git-Url: https://git.donarmstrong.com/?p=dak.git;a=commitdiff_plain;h=e86a480016961c957ca425bf5219600089a92632 daklib/regexes.py: Do not allow colons in filenames. Colons should not be used anywhere as the epoch part of versions is not included in the filename. --- diff --git a/daklib/regexes.py b/daklib/regexes.py index 06cb1736..dd1c3dd8 100644 --- a/daklib/regexes.py +++ b/daklib/regexes.py @@ -133,10 +133,10 @@ re_includeinpdiff = re.compile(r"(Translation-[a-zA-Z_]+\.(?:bz2|xz))") ###################################################################### # Match safe filenames -re_file_safe = re.compile(r'^[a-zA-Z0-9][a-zA-Z0-9_.:~+-]*$') +re_file_safe = re.compile(r'^[a-zA-Z0-9][a-zA-Z0-9_.~+-]*$') # Prefix of binary and source filenames -_re_file_prefix = r'^(?P[a-z0-9][a-z0-9.+-]+)_(?P[A-Za-z0-9.:~+-]+?)' +_re_file_prefix = r'^(?P[a-z0-9][a-z0-9.+-]+)_(?P[A-Za-z0-9.~+-]+?)' # Match binary packages # Groups: package, version, architecture, type