Fix img tag allowing img....

Co-authored-by: TheKodeToad <TheKodeToad@proton.me>
Signed-off-by: SabrePenguin <147069705+SabrePenguin@users.noreply.github.com>
This commit is contained in:
SabrePenguin 2024-04-26 18:21:17 -04:00 committed by GitHub
parent a988415028
commit 5348a90a15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,7 +31,7 @@ QString markdownToHTML(const QString& markdown)
int imgPos;
while (pos != -1) {
pos = pos + 5; // 5 is the size of the </ul> tag
imgPos = htmlStr.indexOf("<img", pos);
imgPos = htmlStr.indexOf("<img ", pos);
if (imgPos == -1)
break; // no image after the tag