From e86a480016961c957ca425bf5219600089a92632 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Fri, 8 Aug 2014 10:38:15 +0200 Subject: [PATCH] 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. --- daklib/regexes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2