improve morss url detection regex
parent
1b4341f741
commit
08f08ef704
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue