From: Albert Astals Cid Date: Thu, 13 Nov 2014 14:06:01 +0000 Subject: Sanitize html X-Git-Url: http://quickgit.kde.org/?p=kwebkitpart.git&a=commitdiff&h=641aa7c75631084260ae89aecbdb625e918c6689 --- Sanitize html As discussed by the security team --- --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -226,23 +226,26 @@ doc += QL1S( "

" ); doc += i18n( "Details of the Request:" ); doc += QL1S( "

" ); doc += i18n( "Description:" ); doc += QL1S( "

" ); - doc += description; + doc += Qt::escape( description ); doc += QL1S( "

" ); if ( causes.count() ) {