From 9f96115b8039342fb80ed63fb5e30bd3b13739e3 Mon Sep 17 00:00:00 2001 From: Ben Darnell Date: Sun, 19 May 2013 12:02:03 -0400 Subject: [PATCH] Add back a lost call to abspath (which may or may not cause test failures depending on how they were run). --- tornado/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tornado/web.py b/tornado/web.py index 296417f41..1292fb44e 100644 --- a/tornado/web.py +++ b/tornado/web.py @@ -1881,7 +1881,7 @@ class StaticFileHandler(RequestHandler): In instance methods, this method's result is available as ``self.absolute_path``. """ - root = self.settings["static_path"] + root = os.path.abspath(self.settings["static_path"]) # os.path.abspath strips a trailing / # it needs to be temporarily added back for requests to root/ if not (absolute_path + os.path.sep).startswith(root): -- 2.47.2