Remove extra options from search path

main
Bob Mottram 2019-12-13 21:00:56 +00:00
parent a54c25fe01
commit 1f460fbc3f
1 changed files with 2 additions and 0 deletions

View File

@ -1670,6 +1670,8 @@ class PubServer(BaseHTTPRequestHandler):
if htmlGET and '/users/' in self.path: if htmlGET and '/users/' in self.path:
if self.path.endswith('/search') or \ if self.path.endswith('/search') or \
'/search?' in self.path: '/search?' in self.path:
if '?' in self.path:
self.path=self.path.split('?')[0]
# show the search screen # show the search screen
msg=htmlSearch(self.server.translate, \ msg=htmlSearch(self.server.translate, \
self.server.baseDir,self.path).encode() self.server.baseDir,self.path).encode()