]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Add back a lost call to abspath (which may or may not cause test failures
authorBen Darnell <ben@bendarnell.com>
Sun, 19 May 2013 16:02:03 +0000 (12:02 -0400)
committerBen Darnell <ben@bendarnell.com>
Sun, 19 May 2013 16:02:03 +0000 (12:02 -0400)
depending on how they were run).

tornado/web.py

index 296417f411fd77b6a9e9a2f704f867e3fe39cf5e..1292fb44e4148a9ace0c4e365d931542b67df99e 100644 (file)
@@ -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):