Branch: Tag:

2018-04-12

2018-04-12 14:18:37 by Stefan Gluszek <stefang@opera.com>

Protocols.HTTP: Remove line breaks from base64 basic auth tokens

183:    proxy_headers = request_headers + ([]);       proxy_headers["Proxy-Authorization"] = "Basic " -  + MIME.encode_base64((user || "") + ":" + (password || "")); +  + MIME.encode_base64((user || "") + ":" + (password || ""), 1);    }       if (url->scheme == "http") {
283:    if(url->user || url->password)    default_headers->authorization = "Basic "    + MIME.encode_base64(url->user + ":" + -  (url->password || "")); +  (url->password || ""), +  1);       if(!request_headers)    request_headers = default_headers;
414:    if(url->user || url->password)    default_headers->authorization = "Basic "    + MIME.encode_base64(url->user + ":" + -  (url->password || "")); +  (url->password || ""), +  1);    request_headers = default_headers | request_headers;       string query=url->query;
538:    proxy_headers = request_headers + ([]);       proxy_headers["Proxy-Authorization"] = "Basic " -  + MIME.encode_base64((user || "") + ":" + (password || "")); +  + MIME.encode_base64((user || "") + ":" + (password || ""), 1);    }       if (url->scheme == "http") {