|
From: <tom...@us...> - 2010-02-04 22:08:04
|
Revision: 2094
http://ndlb.svn.sourceforge.net/ndlb/?rev=2094&view=rev
Author: tombenner
Date: 2010-02-04 22:07:57 +0000 (Thu, 04 Feb 2010)
Log Message:
-----------
Called URI.encode() on the URL in Thl::UtilsController#proxy before passing it to URI.parse()
Modified Paths:
--------------
portal/ror/plugins/thdl_integration/trunk/app/controllers/thl/utils_controller.rb
Modified: portal/ror/plugins/thdl_integration/trunk/app/controllers/thl/utils_controller.rb
===================================================================
--- portal/ror/plugins/thdl_integration/trunk/app/controllers/thl/utils_controller.rb 2010-01-29 21:17:33 UTC (rev 2093)
+++ portal/ror/plugins/thdl_integration/trunk/app/controllers/thl/utils_controller.rb 2010-02-04 22:07:57 UTC (rev 2094)
@@ -10,8 +10,8 @@
url += '&' + url_params unless url_params.blank?
url = "http://www.thlib.org" + url if url[0,1] == "/"
- # Parse the URL with URI.parse() so we can work with its parts more easily
- uri = URI.parse(url)
+ # Parse the URL with URI.parse() so we can work with its parts more easily
+ uri = URI.parse(URI.encode(url));
requested_host = uri.host
headers = {}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|