improve morss url detection regex

master
pictuga 2017-03-20 20:51:13 -10:00
parent 1b4341f741
commit 08f08ef704
1 changed files with 1 additions and 1 deletions

View File

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