From: German Service Network Date: Sat, 4 Oct 2025 06:11:02 +0000 (+0200) Subject: Fix SyntaxWarning re.compile X-Git-Url: https://git.gsnw.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af682c790cbe76154a8f8736445e907ee8e0583e;p=raspbmirror.git Fix SyntaxWarning re.compile --- diff --git a/raspbmirror.py b/raspbmirror.py index 2a8f8ff..ced804f 100644 --- a/raspbmirror.py +++ b/raspbmirror.py @@ -154,7 +154,7 @@ def addtofilequeue(filequeue,filename): #regex used for filename sanity checks -pfnallowed = re.compile(b'[a-z0-9A-Z\-_:\+~\.]+',re.ASCII) +pfnallowed = re.compile(b'[a-zA-Z0-9._:+~-]+', re.ASCII) shaallowed = re.compile(b'[a-z0-9]+',re.ASCII) def ensuresafepath(path):