diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-07-07 15:56:04 +0200 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2023-07-07 15:56:07 +0200 |
commit | 073cb91f885b780ae04b6d9a4b94702307f07321 (patch) | |
tree | 735044a6c17a021f32ffd2f6d271942f33c86818 | |
parent | e225a721807b00297a5733e9d60fe2b5603de77c (diff) | |
download | PrismLauncher-073cb91f885b780ae04b6d9a4b94702307f07321.tar.gz PrismLauncher-073cb91f885b780ae04b6d9a4b94702307f07321.tar.bz2 PrismLauncher-073cb91f885b780ae04b6d9a4b94702307f07321.zip |
fix(ui): validate meta override url
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
-rw-r--r-- | launcher/ui/pages/global/APIPage.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/launcher/ui/pages/global/APIPage.cpp b/launcher/ui/pages/global/APIPage.cpp index dca1b3a6..fab31dbd 100644 --- a/launcher/ui/pages/global/APIPage.cpp +++ b/launcher/ui/pages/global/APIPage.cpp @@ -81,6 +81,8 @@ APIPage::APIPage(QWidget *parent) : connect(ui->pasteTypeComboBox, currentIndexChangedSignal, this, &APIPage::updateBaseURLPlaceholder); // This function needs to be called even when the ComboBox's index is still in its default state. updateBaseURLPlaceholder(ui->pasteTypeComboBox->currentIndex()); + // NOTE: this allows http://, but we replace that with https later anyway + ui->metaURL->setValidator(new QRegularExpressionValidator(validUrlRegExp, ui->metaURL)); ui->baseURLEntry->setValidator(new QRegularExpressionValidator(validUrlRegExp, ui->baseURLEntry)); ui->msaClientID->setValidator(new QRegularExpressionValidator(validMSAClientID, ui->msaClientID)); ui->flameKey->setValidator(new QRegularExpressionValidator(validFlameKey, ui->flameKey)); |