Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 6451

Show
Ignore:
Timestamp:
03/19/07 18:02:24 (2 years ago)
Author:
xal
Message:

Fix nil error for requests with empty PATH_INFO header such as those which are send by the ScanAlert spider

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/request.rb

    r6350 r6451  
    210210    # Returns the interpreted path to requested resource after all the installation directory of this application was taken into account 
    211211    def path 
    212       path = (uri = request_uri) ? uri.split('?').first : '' 
     212      path = (uri = request_uri) ? uri.split('?').first.to_s : '' 
    213213 
    214214      # Cut off the path to the installation directory if given