Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
KDE Libraries
Commits
86e07ecd
Commit
86e07ecd
authored
Nov 16, 2011
by
Dawit Alemayehu
Browse files
Workaround brain dead clients that set the username and password of the
request URL to "undefined". CCBUG: 275033
parent
a9091a5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
kioslave/http/http.cpp
View file @
86e07ecd
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment