mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
add comment
This commit is contained in:
parent
b3dbbb80dd
commit
474ca8d348
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ describe Rack::Protection::PathTraversal do
|
||||||
it("does not touch #{path.inspect}") { get(path).body.should == path }
|
it("does not touch #{path.inspect}") { get(path).body.should == path }
|
||||||
end
|
end
|
||||||
|
|
||||||
{
|
{ # yes, this is ugly, feel free to change that
|
||||||
'/..' => '/', '/a/../b' => '/b', '/a/../b/' => '/b/', '/a/.' => '/a/',
|
'/..' => '/', '/a/../b' => '/b', '/a/../b/' => '/b/', '/a/.' => '/a/',
|
||||||
'/%2e.' => '/', '/a/%2e%2e/b' => '/b', '/a%2f%2e%2e%2fb/' => '/b/',
|
'/%2e.' => '/', '/a/%2e%2e/b' => '/b', '/a%2f%2e%2e%2fb/' => '/b/',
|
||||||
'//' => '/', '/%2fetc%2fpasswd' => '/etc/passwd'
|
'//' => '/', '/%2fetc%2fpasswd' => '/etc/passwd'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue