Skip to content

Commit ada5a29

Browse files
committed
Merge pull request #1472 from padrino/fix-incorrect-params2
Skip the `:path_traversal` protection, fixes #1391.
2 parents c987037 + 2aa22ea commit ada5a29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

padrino-core/lib/padrino-core/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def default_paths!
206206
end
207207

208208
def default_security!
209-
set :protection, true
209+
set :protection, :except => :path_traversal
210210
set :authentication, false
211211
set :sessions, false
212212
set :protect_from_csrf, false

0 commit comments

Comments
 (0)