Fix infinite loop that can be triggered by some invalid html

v0.10.2-fixes
Nicolas Werner 2 years ago
parent 9b751fe6d8
commit 8985c2d1d4
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 6
      src/Utils.cpp

@ -494,7 +494,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);

Loading…
Cancel
Save