mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-25 20:48:52 +03:00
Fix infinite loop that can be triggered by some invalid html
This commit is contained in:
parent
d103f793bf
commit
0752f9477e
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue