Made path work for lighttpd again as it uses an empty string where Apache returns nil

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@820 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson
2005-03-01 17:26:52 +00:00
parent bc05cb1855
commit caf8976ce7

View File

@@ -90,7 +90,7 @@ module ActionController
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