From 474ca8d34848e54849471f1143538b8254640b4c Mon Sep 17 00:00:00 2001 From: Konstantin Haase Date: Wed, 25 May 2011 12:50:25 +0200 Subject: [PATCH] add comment --- rack-protection/spec/path_traversal_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rack-protection/spec/path_traversal_spec.rb b/rack-protection/spec/path_traversal_spec.rb index 90bc13ed..e6ae161c 100644 --- a/rack-protection/spec/path_traversal_spec.rb +++ b/rack-protection/spec/path_traversal_spec.rb @@ -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'