mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-04-30 14:44:31 +02:00
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:
parent
a988415028
commit
5348a90a15
@ -31,7 +31,7 @@ QString markdownToHTML(const QString& markdown)
|
|||||||
int imgPos;
|
int imgPos;
|
||||||
while (pos != -1) {
|
while (pos != -1) {
|
||||||
pos = pos + 5; // 5 is the size of the </ul> tag
|
pos = pos + 5; // 5 is the size of the </ul> tag
|
||||||
imgPos = htmlStr.indexOf("<img", pos);
|
imgPos = htmlStr.indexOf("<img ", pos);
|
||||||
if (imgPos == -1)
|
if (imgPos == -1)
|
||||||
break; // no image after the tag
|
break; // no image after the tag
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user