rack/rack — pull request #373 by ender672 (2012-03-23 20:06:33+00:00)
Title: Small refactor and spec update for unsafe directory traversal

Use File.expand_path to determine path traversal safety. Break path safety check into a helper method.

Point all unsafe directory traversal tests to existing files. Without this all tests pass even when you comment out directory traversal protection in lib/rack/file.rb.