Use https:// scheme by default.

This commit is contained in:
John Preston 2023-08-11 10:21:53 +02:00
parent eeb2cbc69c
commit 18ac9868bb

View file

@ -73,7 +73,7 @@ QString UrlClickHandler::EncodeForOpening(const QString &originalUrl) {
&& !QRegularExpression( && !QRegularExpression(
QStringLiteral("^[a-zA-Z]+:")).match(result).hasMatch()) { QStringLiteral("^[a-zA-Z]+:")).match(result).hasMatch()) {
// No protocol. // No protocol.
return QStringLiteral("http://") + result; return QStringLiteral("https://") + result;
} }
return result; return result;
} }