lib/lastpass/fetcher.rb in lastpass-1.6.0 vs lib/lastpass/fetcher.rb in lastpass-1.6.1
- old
+ new
@@ -8,18 +8,18 @@
request_login username, password, key_iteration_count, multifactor_password, client_id
end
def self.logout session, web_client = http
response = web_client.get "https://lastpass.com/logout.php?method=cli&noredirect=1",
- cookies: {"PHPSESSID" => URI.encode(session.id)}
+ cookies: {"PHPSESSID" => URI.encode_www_form_component(session.id)}
raise NetworkError unless response.response.is_a? Net::HTTPOK
end
def self.fetch session, web_client = http
response = web_client.get "https://lastpass.com/getaccts.php?mobile=1&b64=1&hash=0.0&hasplugin=3.0.23&requestsrc=cli",
format: :plain,
- cookies: {"PHPSESSID" => URI.encode(session.id)}
+ cookies: {"PHPSESSID" => URI.encode_www_form_component(session.id)}
raise NetworkError unless response.response.is_a? Net::HTTPOK
Blob.new decode_blob(response.parsed_response),
session.key_iteration_count,