From 7cdcbd23e1d80c45b979875b3f7db90a1616b58b Mon Sep 17 00:00:00 2001 From: pictuga Date: Tue, 14 Dec 2021 12:06:08 +0000 Subject: [PATCH] wsgi: fix another typo --- morss/wsgi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/morss/wsgi.py b/morss/wsgi.py index 5a7630e..1bb8cff 100644 --- a/morss/wsgi.py +++ b/morss/wsgi.py @@ -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)