Skip to content

Commit

Permalink
fix: escape more 7tv things (#5780)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nerixyz authored Dec 31, 2024
1 parent fae3e7a commit becc100
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Bugfix: Fixed scrollbar highlights being visible in overlay windows. (#5769)
- Bugfix: Make macos fonts look the same as v2.5.1. (#5775)
- Bugfix: Fixed 7TV usernames messing with Qt's HTML (#5780)
- Dev: Hard-code Boost 1.86.0 in macos CI builders. (#5774)

## 2.5.2-beta.1
Expand Down
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 becc100

Please sign in to comment.