Browse files

fixed uri encoding problem

  • Loading branch information...
1 parent 0f90568 commit 55b406d247c373141623d5a1cd61dcad01cc9f7f @pulse00 committed Jan 30, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/controllers/authsubs_controller.rb
View
4 app/controllers/authsubs_controller.rb
@@ -14,7 +14,7 @@ def listdocs
client.authsub_token = token
@docs = {}
- feed = client.get('http://docs.google.com/feeds/documents/private/full?title=' + params[:q]).to_xml
+ feed = client.get('http://docs.google.com/feeds/documents/private/full?title=' + URI.escape(params[:q])).to_xml
feed.elements.each('entry') do |entry|
entry.elements.each('link') do |link|
@@ -68,4 +68,4 @@ def finish
redirect_to :controller => 'my', :action => 'account'
end
-end
+end

0 comments on commit 55b406d

Please sign in to comment.