lib/avst-wizard.rb in avst-wizard-0.0.22 vs lib/avst-wizard.rb in avst-wizard-0.0.23

- old
+ new

@@ -48,10 +48,10 @@ end response = Net::HTTP.start(url.host, url.port, use_ssl: use_ssl, verify_mode: OpenSSL::SSL::VERIFY_NONE) { |http| http.request(req) } if response['set-cookie'] @cookie = response['set-cookie'].split('; ')[0] response['set-cookie'].split(';').each do |part| - if part.include? "atl.xsrf.token" + if ((part.include? "atl.xsrf.token") and (part.match(/atl.xsrf.token=(.*)/))) # parse only the token @atl_token = part.match(/atl.xsrf.token=(.*)/).captures[0] break end end