fix: percent-encoded url for custom players (#6725)
Reviewed-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -25,8 +25,9 @@ void openInCustomPlayer(QStringView channelName)
|
||||
return;
|
||||
}
|
||||
|
||||
QDesktopServices::openUrl(
|
||||
QUrl{scheme % u"https://www.twitch.tv/" % channelName});
|
||||
QString encodedTwitchUrl = QString::fromUtf8(
|
||||
QUrl::toPercentEncoding(u"https://www.twitch.tv/" % channelName));
|
||||
QDesktopServices::openUrl(QUrl{scheme % encodedTwitchUrl});
|
||||
}
|
||||
|
||||
} // namespace chatterino
|
||||
|
||||
Reference in New Issue
Block a user