Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit a1d2d61d authored by Volker Krause's avatar Volker Krause

Default to HTTPS, for new feeds and for the initial feed list content

Reviewers: #kde_pim, winterz, mlaurent

Reviewed By: #kde_pim, winterz, mlaurent

Subscribers: winterz

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D7414
parent 6a325398
......@@ -109,12 +109,12 @@ void AddFeedDialog::accept()
}
if (!feedUrl.contains(QStringLiteral(":/"))) {
feedUrl.prepend(QStringLiteral("http://"));
feedUrl.prepend(QStringLiteral("https://"));
}
QUrl asUrl(feedUrl);
if (asUrl.scheme() == QLatin1String("feed")) {
asUrl.setScheme(QStringLiteral("http"));
asUrl.setScheme(QStringLiteral("https"));
feedUrl = asUrl.url();
}
m_feed->setXmlUrl(feedUrl);
......
......@@ -123,7 +123,7 @@ static QDomDocument createDefaultFeedList()
QDomElement planetkde = doc.createElement(QStringLiteral("outline"));
planetkde.setAttribute(QStringLiteral("text"), i18n("Planet KDE"));
planetkde.setAttribute(QStringLiteral("xmlUrl"), QStringLiteral("http://planetkde.org/rss20.xml"));
planetkde.setAttribute(QStringLiteral("xmlUrl"), QStringLiteral("https://planetkde.org/rss20.xml"));
mainFolder.appendChild(planetkde);
QDomElement apps = doc.createElement(QStringLiteral("outline"));
......@@ -138,7 +138,7 @@ static QDomDocument createDefaultFeedList()
QDomElement portugueuseKde = doc.createElement(QStringLiteral("outline"));
portugueuseKde.setAttribute(QStringLiteral("text"), i18n("Planet KDE Brazilian Portuguese"));
portugueuseKde.setAttribute(QStringLiteral("xmlUrl"), QStringLiteral("http://planetkde.org/pt-br/rss20.xml"));
portugueuseKde.setAttribute(QStringLiteral("xmlUrl"), QStringLiteral("https://planetkde.org/pt-br/rss20.xml"));
portugueuseFolder.appendChild(portugueuseKde);
// spanish feed(s)
......@@ -148,7 +148,7 @@ static QDomDocument createDefaultFeedList()
QDomElement spanishKde = doc.createElement(QStringLiteral("outline"));
spanishKde.setAttribute(QStringLiteral("text"), i18n("Planet KDE España"));
spanishKde.setAttribute(QStringLiteral("xmlUrl"), QStringLiteral("http://planet.kde-espana.org/atom.xml"));
spanishKde.setAttribute(QStringLiteral("xmlUrl"), QStringLiteral("https://planet.kde-espana.org/atom.xml"));
spanishFolder.appendChild(spanishKde);
return doc;
......
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