Changeset 964

Show
Ignore:
Timestamp:
02/19/08 23:48:59 (7 months ago)
Author:
evanweaver
Message:

Restore fix for path traversal issue; fix camping handler.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/stable_1-1/lib/mongrel/handlers.rb

    r963 r964  
    134134      req_path = File.expand_path req_path 
    135135       
    136       if File.exist? req_path # and (!@path or req_path.index(@path) == 0) 
     136      if File.exist? req_path and (!@path or req_path.index(@path) == 0) 
    137137        # It exists and it's in the right location 
    138138        if File.directory? req_path