http_server filename regex

master
Max 2 years ago
parent d964703e83
commit a169f37c3a
  1. 2
      op25/gr-op25_repeater/apps/http_server.py

@ -98,7 +98,7 @@ def static_file(environ, start_response):
if environ['PATH_INFO'] == '/':
filename = 'index.html'
else:
filename = re.sub(r'[^a-zA-Z0-9_.\-]', '', environ['PATH_INFO'])
filename = re.sub(r'[^a-zA-Z0-9_.\-/]', '', environ['PATH_INFO'])
suf = filename.split('.')[-1]
pathname = '../www/www-static'
if suf in img_types:

Loading…
Cancel
Save