mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Restore fix for path traversal issue; fix camping handler.
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/branches/stable_1-1@964 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
parent
cf0c084f0a
commit
0f8b09cf11
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ module Mongrel
|
|||
req_path = File.join(@path, req_path) if @path
|
||||
req_path = File.expand_path req_path
|
||||
|
||||
if File.exist? req_path # and (!@path or req_path.index(@path) == 0)
|
||||
if File.exist? req_path and (!@path or req_path.index(@path) == 0)
|
||||
# It exists and it's in the right location
|
||||
if File.directory? req_path
|
||||
# The request is for a directory
|
||||
|
|
Loading…
Add table
Reference in a new issue