Commit dbb2f72f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Security fix found by David yesterday during debug

(cherry picked from commit b6a46407)
parent 86e5c519
......@@ -40,6 +40,10 @@ QString HTMLQuoteColorer::process( const QString &htmlSource )
// Create a DOM Document from the HTML source
QWebPage page(0);
page.settings()->setAttribute( QWebSettings::JavascriptEnabled, false );
page.settings()->setAttribute( QWebSettings::JavaEnabled, false );
page.settings()->setAttribute( QWebSettings::PluginsEnabled, false );
QWebFrame *frame = page.mainFrame();
frame->setHtml( htmlSource );
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