Skip to content

Commit

Permalink
#1685: Changing all HTTP post/request to HTTPS.
Browse files Browse the repository at this point in the history
  • Loading branch information
simsekgokhan committed Jul 31, 2020
1 parent 750fd9d commit e6c070d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/robomongo/gui/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1470,15 +1470,15 @@ namespace Robomongo

// Build dbVersionsConnected in following format: "3.4.3,2.6.0,..."
QString dbVersionsConnected;
for (auto const& version : settingsManager->dbVersionsConnected())
for (auto const& version : settings->dbVersionsConnected())
dbVersionsConnected.append(version + ',');

if (dbVersionsConnected.endsWith(','))
dbVersionsConnected.chop(1);

// softwareId=8: Robomongo product ID
QUrl url("http://updates.3tsoftwarelabs.com/check.php?os=" + OS + "&softwareId=8&softwareVersion=" +
QString(PROJECT_VERSION) + "&licenseInfo=FREE&setup=" + settingsManager->anonymousID() +
QUrl url("https://updates.3tsoftwarelabs.com/check.php?os=" + OS + "&softwareId=8&softwareVersion=" +
QString(PROJECT_VERSION) + "&licenseInfo=FREE&setup=" + settings->anonymousID() +
"&dbVersionsConnected=" + dbVersionsConnected + "&notify=true#");

_networkAccessManager->get(QNetworkRequest(url));
Expand Down
2 changes: 1 addition & 1 deletion src/robomongo/gui/dialogs/AboutDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace
"<br>"

"<b>Credits: <br/></b>"
"Some icons are designed by Freepik <a href=http://www.flaticon.com>www.flaticon.com</a>"
"Some icons are designed by Freepik <a href=https://www.flaticon.com>www.flaticon.com</a>"
"<br/>"
};
}
Expand Down
4 changes: 1 addition & 3 deletions src/robomongo/gui/dialogs/EulaDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,7 @@ namespace Robomongo
QUrlQuery postData(jsonDoc.toJson());
postData = QUrlQuery("rd=" + postData.toString(QUrl::FullyEncoded).toUtf8());

QString const prefix = AppRegistry::instance().settingsManager()->useHttps() ? "https" : "http";
QNetworkRequest request(QUrl(prefix + "://rm-form.3t.io/"));

QNetworkRequest request(QUrl("https://rm-form.3t.io/"));
request.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded");

auto networkManager = new QNetworkAccessManager;
Expand Down
7 changes: 3 additions & 4 deletions src/robomongo/gui/widgets/workarea/WelcomeTab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,9 @@ namespace Robomongo
WelcomeTab::WelcomeTab(QScrollArea *parent) :
QWidget(parent), _parent(parent)
{
QString const prefix = AppRegistry::instance().settingsManager()->useHttps() ? "https" : "http";
_pic1_URL = prefix + QString("://rm-feed.3t.io/") + IMAGE_PATH;
_text1_URL = prefix + QString("://rm-feed.3t.io/") + CONTENTS_PATH;
_rss_URL = prefix + QString("://blog.robomongo.org/rss/");
_pic1_URL = "https://rm-feed.3t.io/" + IMAGE_PATH;
_text1_URL = "https://rm-feed.3t.io/" + CONTENTS_PATH;
_rss_URL = "https://blog.robomongo.org/rss/";

/* Temporarily disabling Recent Connections feature
AppRegistry::instance().bus()->subscribe(this, ConnectionEstablishedEvent::Type);
Expand Down

0 comments on commit e6c070d

Please sign in to comment.