summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Utils.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Utils.cpp b/src/Utils.cpp

index d0b6818d..cedf537a 100644 --- a/src/Utils.cpp +++ b/src/Utils.cpp
@@ -500,7 +500,11 @@ utils::escapeBlacklistedHtml(const QString &rawStr) attrStart = consumeSpaces(attrEnd); - if (attrStart < attrsEnd) { + if (attrName.isEmpty()) { + buffer.append(QUrl::toPercentEncoding(QString(QByteArray(attrStart, 1)))); + attrStart++; + continue; + } else if (attrStart < attrsEnd) { if (*attrStart == '=') { attrStart = consumeSpaces(attrStart + 1);