From 31e7d2d6220ce235627e4f177bb3fdd3970817ab Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 9 Feb 2026 18:11:20 +0000 Subject: [PATCH] del is technically illegal too --- copyparty/httpcli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index cb915bba..e5fc2a13 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -168,9 +168,9 @@ A_FILE = os.stat_result( (0o644, -1, -1, 1, 1000, 1000, 8, 0x39230101, 0x39230101, 0x39230101) ) -RE_CC = re.compile(r"[\x00-\x1f]") # search always faster -RE_USAFE = re.compile(r'[\x00-\x1f<>"]') # search always faster -RE_HSAFE = re.compile(r"[\x00-\x1f<>\"'&]") # search always much faster +RE_CC = re.compile(r"[\x00-\x1f\x7f]") # search always faster +RE_USAFE = re.compile(r'[\x00-\x1f\x7f<>"]') # search always faster +RE_HSAFE = re.compile(r"[\x00-\x1f\x7f<>\"'&]") # search always much faster RE_HOST = re.compile(r"[^][0-9a-zA-Z.:_-]") # search faster <=17ch RE_MHOST = re.compile(r"^[][0-9a-zA-Z.:_-]+$") # match faster >=18ch RE_K = re.compile(r"[^0-9a-zA-Z_-]") # search faster <=17ch