diff --git a/objecttreeparser.cpp b/objecttreeparser.cpp index c88d7263f..625cf61a6 100644 --- a/objecttreeparser.cpp +++ b/objecttreeparser.cpp @@ -253,6 +253,12 @@ namespace KMail { node->setProcessed( false, true ); } + // Make sure the whole content is relative, so that nothing is painted over the header + // if a malicious message uses absolute positioning. + bool isRoot = ( node->parentNode() == 0 ); + if ( isRoot && mReader ) + htmlWriter()->queue( "