Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix accented characters, patch from Ken Preudhomme. Thanks!

  • Loading branch information...
commit 8158a83bafed9010c3aa38d2eeb5463212dda376 1 parent e89a6f7
@pwood pwood authored
Showing with 5 additions and 4 deletions.
  1. +5 −4 lib/wowr.rb
View
9 lib/wowr.rb
@@ -906,7 +906,7 @@ def refresh_login(long_life_cookie)
# All we need to do is goto the armory login page passing our long life cookie, we should get 302 instantly.
stage1 = login_http(authentication_url, true, { @@persistant_cookie => long_life_cookie })
-
+
# Let's see
if (stage1.code == "200")
# It's no good, our cookie doesn't work anymore.
@@ -1082,7 +1082,7 @@ def http_request(url, options = {})
req["cookie"] += options[:cookie] if options[:cookie]
- uri = URI.parse(url)
+ uri = URI.parse(URI.escape(url))
http = Net::HTTP.new(uri.host, uri.port)
@@ -1193,9 +1193,10 @@ def u(str) #:nodoc:
end
def login_final_bounce(url)
+puts url
# Let's bounce to our page that will give us our short term cookie, URL has Kerbrose style ticket.
finalstage = login_http(url)
-
+
# Did we get a 200?
if (finalstage.code == "200")
# Get the short term cookie at last
@@ -1231,7 +1232,7 @@ def login_http(url, ssl = false, cookie = nil, data = nil, post = false)
end
req.set_form_data(data, '&') if data
-
+
http.start do
res = http.request(req)
Please sign in to comment.
Something went wrong with that request. Please try again.