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 Trial97
parent 096028f1a6
commit 0c84d58915
No known key found for this signature in database
GPG Key ID: 55EF5DA53DB36318

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