]> git.ipfire.org Git - thirdparty/tornado.git/commit
Fix path traversal check in StaticFileHandler.
authorBen Darnell <ben@bendarnell.com>
Fri, 17 Jul 2015 15:36:53 +0000 (11:36 -0400)
committerBen Darnell <ben@bendarnell.com>
Fri, 17 Jul 2015 15:36:53 +0000 (11:36 -0400)
commitecb3ea7543cc942659faf3d2144853018afa6139
treee6c9fea818e7da6c42b39b3e6cc28b4f5cfd562f
parentfdfaf3dffa49479c7461050eacca07bc5ee8d207
Fix path traversal check in StaticFileHandler.

Previously StaticFileHandler would allow access to files whose name
starts with the static root directory, not just those that are actually
in the directory.

The bug was introduced in Tornado 3.1 via commits 7b03cd62fb and
60952528.
MANIFEST.in
setup.py
tornado/test/static_foo.txt [new file with mode: 0644]
tornado/test/web_test.py
tornado/web.py