accept query_string in morss cgi

master
pictuga 2017-03-20 20:50:04 -10:00
parent f965566054
commit 1b4341f741
1 changed files with 3 additions and 0 deletions

View File

@ -497,6 +497,9 @@ def cgi_app(environ, start_response):
else: else:
url = environ['PATH_INFO'][1:] url = environ['PATH_INFO'][1:]
if environ['QUERY_STRING']:
url += '?' + environ['QUERY_STRING']
url = re.sub(r'^/?(morss.py|main.py|cgi/main.py)/', '', url) url = re.sub(r'^/?(morss.py|main.py|cgi/main.py)/', '', url)
if url.startswith(':'): if url.startswith(':'):