From e1985a013077ff1f2869520b8ff34d207db8b3b6 Mon Sep 17 00:00:00 2001 From: Isaac Hailperin Date: Tue, 7 Feb 2017 08:56:32 +0100 Subject: [PATCH] Instead of listing special characters in re, '?' is excluded --- remi/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/remi/server.py b/remi/server.py index afe3f6ba..37cb5a87 100644 --- a/remi/server.py +++ b/remi/server.py @@ -344,7 +344,7 @@ class App(BaseHTTPRequestHandler, object): - file requests """ - re_static_file = re.compile(r"^/res/([-_. \w\d]+)\?{0,1}(?:[\w\d]*)") # https://regex101.com/r/uK1sX1/1 + re_static_file = re.compile(r"^/res/([^\?]+)\?{0,1}(?:[\w\d]*)") re_attr_call = re.compile(r"^/*(\w+)\/(\w+)\?{0,1}(\w*\={1}(\w|\.)+\&{0,1})*$") def __init__(self, request, client_address, server, **app_args):