Skip to content

Commit

Permalink
Re-add a missing abspath call.
Browse files Browse the repository at this point in the history
This is needed when __file__ is not absolute.
  • Loading branch information
bdarnell committed May 25, 2013
1 parent 7b03cd6 commit 6095252
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tornado/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -1916,6 +1916,7 @@ def validate_absolute_path(self, root, absolute_path):
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):
Expand Down

0 comments on commit 6095252

Please sign in to comment.