wsgi: fix another typo
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
25f283da1f
commit
7cdcbd23e1
|
@ -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 it is a legitimate url (no funny relative paths)
|
||||
try:
|
||||
f = open(data_path(url), 'rb')
|
||||
path = data_path(url)
|
||||
f = open(path, 'rb')
|
||||
|
||||
except IOError:
|
||||
# problem with file (cannot open or not found)
|
||||
|
|
Loading…
Reference in New Issue