|
|
|
|
@ -904,7 +904,7 @@ void KMReaderWin::writeBodyStr(const QCString aStr, QTextCodec *aCodec) |
|
|
|
|
|
|
|
|
|
/* HTMLize signedBy data ### FIXME: use .arg()*/ |
|
|
|
|
QString sdata=pgp->signedBy(); |
|
|
|
|
sdata.replace(QRegExp("\""), """); |
|
|
|
|
sdata.replace(QRegExp("&"), "&"); |
|
|
|
|
sdata.replace(QRegExp("<"), "<"); |
|
|
|
|
sdata.replace(QRegExp(">"), ">"); |
|
|
|
|
|
|
|
|
|
@ -1046,7 +1046,7 @@ void KMReaderWin::writePartIcon(KMMessagePart* aMsgPart, int aPartNum) |
|
|
|
|
kdDebug(5006) << "writePartIcon: PartNum: " << aPartNum << endl; |
|
|
|
|
|
|
|
|
|
comment = aMsgPart->contentDescription(); |
|
|
|
|
comment.replace(QRegExp("\""), """); |
|
|
|
|
comment.replace(QRegExp("&"), "&"); |
|
|
|
|
comment.replace(QRegExp("<"), "<"); |
|
|
|
|
comment.replace(QRegExp(">"), ">"); |
|
|
|
|
|
|
|
|
|
@ -1054,7 +1054,7 @@ void KMReaderWin::writePartIcon(KMMessagePart* aMsgPart, int aPartNum) |
|
|
|
|
if (fileName.isEmpty()) fileName = aMsgPart->name(); |
|
|
|
|
label = fileName; |
|
|
|
|
/* HTMLize label */ |
|
|
|
|
label.replace(QRegExp("\""), """); |
|
|
|
|
label.replace(QRegExp("&"), "&"); |
|
|
|
|
label.replace(QRegExp("<"), "<"); |
|
|
|
|
label.replace(QRegExp(">"), ">"); |
|
|
|
|
|
|
|
|
|
@ -1161,7 +1161,8 @@ QString KMReaderWin::strToHtml(const QString &aStr, bool aPreserveBlanks) const |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (ch=='<') result += "<"; |
|
|
|
|
if (ch=='&') result += "&"; |
|
|
|
|
else if (ch=='<') result += "<"; |
|
|
|
|
else if (ch=='>') result += ">"; |
|
|
|
|
else if (ch=='\n') { |
|
|
|
|
result += "<br>"; |
|
|
|
|
|