Skip to content

Commit

Permalink
fix: escape more 7tv things
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz committed Dec 31, 2024
1 parent fae3e7a commit 8dbbd2f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/providers/seventv/SeventvEmotes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ Tooltip createTooltip(const QString &name, const QString &author, bool isGlobal)
return Tooltip{QString("%1<br>%2 7TV Emote<br>By: %3")
.arg(name.toHtmlEscaped(),
isGlobal ? "Global" : "Channel",
author.isEmpty() ? "<deleted>" : author)};
author.isEmpty() ? "&lt;deleted&gt;"
: author.toHtmlEscaped())};
}

Tooltip createAliasedTooltip(const QString &name, const QString &baseName,
Expand All @@ -90,7 +91,8 @@ Tooltip createAliasedTooltip(const QString &name, const QString &baseName,
return Tooltip{QString("%1<br>Alias of %2<br>%3 7TV Emote<br>By: %4")
.arg(name.toHtmlEscaped(), baseName.toHtmlEscaped(),
isGlobal ? "Global" : "Channel",
author.isEmpty() ? "<deleted>" : author)};
author.isEmpty() ? "&lt;deleted&gt;"
: author.toHtmlEscaped())};
}

CreateEmoteResult createEmote(const QJsonObject &activeEmote,
Expand Down

0 comments on commit 8dbbd2f

Please sign in to comment.