wsgi: fix another typo
continuous-integration/drone/push Build is passing Details

master
pictuga 2021-12-14 12:06:08 +00:00
parent 25f283da1f
commit 7cdcbd23e1
1 changed files with 2 additions and 1 deletions

View File

@ -169,7 +169,8 @@ def cgi_file_handler(environ, start_response, app):
if re.match(r'^/?([a-zA-Z0-9_-][a-zA-Z0-9\._-]+/?)*$', url): if re.match(r'^/?([a-zA-Z0-9_-][a-zA-Z0-9\._-]+/?)*$', url):
# if it is a legitimate url (no funny relative paths) # if it is a legitimate url (no funny relative paths)
try: try:
f = open(data_path(url), 'rb') path = data_path(url)
f = open(path, 'rb')
except IOError: except IOError:
# problem with file (cannot open or not found) # problem with file (cannot open or not found)