Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix nil error for requests with empty PATH_INFO header such as those …

…which are send by the ScanAlert spider

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6451 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit f39fe3091fe17b2f8b7836af78e033d1c939a832 1 parent b5e01f3
Tobias Lütke authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  actionpack/lib/action_controller/request.rb
View
2  actionpack/lib/action_controller/request.rb
@@ -209,7 +209,7 @@ def request_uri
# Returns the interpreted path to requested resource after all the installation directory of this application was taken into account
def path
- path = (uri = request_uri) ? uri.split('?').first : ''
+ path = (uri = request_uri) ? uri.split('?').first.to_s : ''
# Cut off the path to the installation directory if given
path.sub!(%r/^#{relative_url_root}/, '')
Please sign in to comment.
Something went wrong with that request. Please try again.