]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Re-add a missing abspath call.
authorBen Darnell <ben@bendarnell.com>
Sat, 25 May 2013 22:31:20 +0000 (18:31 -0400)
committerBen Darnell <ben@bendarnell.com>
Sat, 25 May 2013 22:31:20 +0000 (18:31 -0400)
This is needed when __file__ is not absolute.

tornado/web.py

index b8b22dd6c10bce898a09ceb29ffdd3906182874c..4940244e2ad12381f0dd946e7884d8f59bfd427c 100644 (file)
@@ -1916,6 +1916,7 @@ class StaticFileHandler(RequestHandler):
         In instance methods, this method's result is available as
         ``self.absolute_path``.
         """
+        root = os.path.abspath(root)
         # 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):