From kde-commits Wed Jan 31 23:09:25 2007 From: Tom Albers Date: Wed, 31 Jan 2007 23:09:25 +0000 To: kde-commits Subject: playground/pim/mailody/src Message-Id: <1170284965.789600.16219.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=117028502429157 SVN commit 628925 by toma: Disable jscript, java, metarefresh and plugins for the printing khtmlpart, error spotted by David Faure. M +4 -0 messageview.cpp --- trunk/playground/pim/mailody/src/messageview.cpp #628924:628925 @@ -131,6 +131,10 @@ QSimpleRichText msgheaders(msgheadersdata, QFont("times",9)); KHTMLPart* newPart = new KHTMLPart(this); + newPart->setJScriptEnabled(false); + newPart->setJavaEnabled(false); + newPart->setMetaRefreshEnabled(false); + newPart->setPluginsEnabled(false); newPart->setOnlyLocalReferences(!m_body->externalImage()); m_body->fixedfont() ? newPart->setStandardFont(KGlobalSettings::fixedFont().family())