Commit 86e07ecd authored by Dawit Alemayehu's avatar Dawit Alemayehu
Browse files

Workaround brain dead clients that set the username and password of the

request URL to "undefined".

CCBUG: 275033
parent a9091a5b
......@@ -210,6 +210,12 @@ static bool isPotentialSpoofingAttack(const HTTPProtocol::HTTPRequest& request,
return false;
// NOTE: Workaround for brain dead clients that include "undefined" as
// username and password in the request URL (BR# 275033).
if (request.url.user() == QLatin1String("undefined") && request.url.pass() == QLatin1String("undefined")) {
return false;
// We already have cached authentication.
if (config->readEntry(QLatin1String("cached-www-auth"), false)) {
return false;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment