This commit is contained in:
Martin Rotter 2016-04-15 10:28:44 +02:00
parent 7029db6139
commit 62b248a7bc

View File

@ -209,6 +209,7 @@ QString MessagePreviewer::prepareHtmlForMessage(const Message &message) {
QRegExp imgTagRegex("\\<img[^\\>]*src\\s*=\\s*\"([^\"]*)\"[^\\>]*\\>", Qt::CaseInsensitive);
imgTagRegex.setMinimal(true);
while( (offset = imgTagRegex.indexIn(message.m_contents, offset)) != -1){
offset += imgTagRegex.matchedLength();
html += QString("[%2] <a href=\"%1\">%1</a><br/>").arg(imgTagRegex.cap(1), tr("image"));