]> git.gsnw.org Git - raspbmirror.git/commitdiff
Fix SyntaxWarning re.compile
authorGerman Service Network <support@gsnw.de>
Sat, 4 Oct 2025 06:11:02 +0000 (08:11 +0200)
committerGerman Service Network <support@gsnw.de>
Sat, 4 Oct 2025 06:11:02 +0000 (08:11 +0200)
raspbmirror.py

index 2a8f8ffa93ad840eea8a18fb4d7daabed8986c4b..ced804f153ee2c3212383181743d9e83217bb591 100644 (file)
@@ -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):