Permalink
Browse files

Made path work for lighttpd again as it uses an empty string where Ap…

…ache returns nil

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@820 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent bc05cb1 commit caf8976ce786a1d6dca69a448da394dbddd53f12 @dhh dhh committed Mar 1, 2005
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/request.rb
@@ -90,7 +90,7 @@ def ssl?
end
def path
- path = path_info ? path_info : ( request_uri ? request_uri.split('?').first : '' )
+ (path_info && !path_info.empty?) ? path_info : (request_uri ? request_uri.split('?').first : '')
end
def port

0 comments on commit caf8976

Please sign in to comment.