Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
Rekonq
Commits
1d83ce10
Commit
1d83ce10
authored
Jan 24, 2011
by
Andrea Diamantini
Browse files
This evening I started working again on this bug. I did all the tests against XSS
and it seems ok. Hope it's true. CCBUG:217464 CCBUG:246355
parent
8d383e07
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/webpage.cpp
View file @
1d83ce10
...
...
@@ -392,8 +392,11 @@ void WebPage::handleUnsupportedContent(QNetworkReply *reply)
// This is probably needed just in ONE stupid case..
if
(
_protHandler
.
postHandling
(
reply
->
request
(),
mainFrame
()))
{
kDebug
()
<<
"POST HANDLING the unsupported..."
;
return
;
}
if
(
reply
->
error
()
!=
QNetworkReply
::
NoError
)
return
;
...
...
@@ -655,9 +658,9 @@ QString WebPage::errorPage(QNetworkReply *reply)
QString
title
=
i18n
(
"There was a problem while loading the page"
);
// NOTE:
// this, to
be sure BUG 217464 (Universal XSS) has been fixed
..
QString
urlString
=
Qt
::
escape
(
reply
->
url
().
toString
(
QUrl
::
RemoveUserInfo
|
QUrl
::
RemoveQuery
|
QUrl
::
RemovePath
));
// this, to
take care about XSS (see BUG 217464).
..
QString
urlString
=
Qt
::
escape
(
reply
->
url
().
toString
());
QString
iconPath
=
QString
(
"file://"
)
+
KIconLoader
::
global
()
->
iconPath
(
"dialog-warning"
,
KIconLoader
::
Small
);
iconPath
.
replace
(
QL1S
(
"16"
),
QL1S
(
"128"
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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