1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

add comment

This commit is contained in:
Konstantin Haase 2011-05-25 12:50:25 +02:00
parent b3dbbb80dd
commit 474ca8d348

View file

@ -12,7 +12,7 @@ describe Rack::Protection::PathTraversal do
it("does not touch #{path.inspect}") { get(path).body.should == path }
end
{
{ # yes, this is ugly, feel free to change that
'/..' => '/', '/a/../b' => '/b', '/a/../b/' => '/b/', '/a/.' => '/a/',
'/%2e.' => '/', '/a/%2e%2e/b' => '/b', '/a%2f%2e%2e%2fb/' => '/b/',
'//' => '/', '/%2fetc%2fpasswd' => '/etc/passwd'