From: Ben Darnell Date: Sun, 19 May 2013 16:02:03 +0000 (-0400) Subject: Add back a lost call to abspath (which may or may not cause test failures X-Git-Tag: v3.1.0~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f96115b8039342fb80ed63fb5e30bd3b13739e3;p=thirdparty%2Ftornado.git Add back a lost call to abspath (which may or may not cause test failures depending on how they were run). --- 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):