Commit bc8530f7 authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

For hotspot links use https instead of http

If the URL path does not include the protocol, use https now.

https://www.volkerkrause.eu/2018/12/08/kde-privacy-finding-insecure-network-connections.html
parent d1dcf25a
......@@ -423,9 +423,9 @@ void UrlFilter::HotSpot::activate(QObject *object)
if ((object == nullptr) || actionName == QLatin1String("open-action")) {
if (kind == StandardUrl) {
// if the URL path does not include the protocol ( eg. "www.kde.org" ) then
// prepend http:// ( eg. "www.kde.org" --> "http://www.kde.org" )
// prepend https:// ( eg. "www.kde.org" --> "https://www.kde.org" )
if (!url.contains(QLatin1String("://"))) {
url.prepend(QLatin1String("http://"));
url.prepend(QLatin1String("https://"));
}
} else if (kind == Email) {
url.prepend(QLatin1String("mailto:"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment