From 1f460fbc3fa3cae6a2e6c7d1b06086ad97d1e088 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 13 Dec 2019 21:00:56 +0000 Subject: [PATCH] Remove extra options from search path --- daemon.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon.py b/daemon.py index a35b1019c..507cf6f3b 100644 --- a/daemon.py +++ b/daemon.py @@ -1670,6 +1670,8 @@ class PubServer(BaseHTTPRequestHandler): if htmlGET and '/users/' in self.path: if self.path.endswith('/search') or \ '/search?' in self.path: + if '?' in self.path: + self.path=self.path.split('?')[0] # show the search screen msg=htmlSearch(self.server.translate, \ self.server.baseDir,self.path).encode()