Skip to content

Commit

Permalink
Trim whitespace surrounding authlib-injector URL
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-goode committed Jan 12, 2024
1 parent cd9de42 commit 7ecf1d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion launcher/ui/dialogs/AuthlibInjectorLoginDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ AuthlibInjectorLoginDialog::~AuthlibInjectorLoginDialog()

QString AuthlibInjectorLoginDialog::fixUrl(QString url)
{
QString fixed(url);
QString fixed{ url };
fixed = fixed.trimmed();
if (!fixed.contains("://")) {
fixed.prepend("https://");
}
Expand Down

0 comments on commit 7ecf1d2

Please sign in to comment.