Skip to content
Snippets Groups Projects
Verified Commit 8985c2d1 authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix infinite loop that can be triggered by some invalid html

parent 9b751fe6
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment