Skip to content
Permalink
Browse files

Added HTTPS support for WP sites

Visiting OWA on HTTPS will cause browser partially insecure content warning, due to fetching of Gravatar and WP thumbnail over HTTP.
  • Loading branch information...
bearz314 committed Feb 2, 2018
1 parent 4d5a4a4 commit 68e8084ecec48761bff664fe801586b3b02bff50
Showing with 2 additions and 2 deletions.
  1. +2 −2 owa_template.php
4 owa_template.php 100644 → 100755
@@ -902,7 +902,7 @@ function formatNumber($num, $decimal_places) {
function getAvatarImage($email) {
if (false != $email) {
$url = sprintf("http://www.gravatar.com/avatar/%s?s=30", md5($email));
$url = sprintf("https://www.gravatar.com/avatar/%s?s=30", md5($email));
} else {
$url = $this->makeImageLink('base/i/default_user_50x50.png');
}
@@ -1032,7 +1032,7 @@ function getLatestActions( $startDate, $endDate, $siteId, $visitorId = '', $sess
public function getSiteThumbnail( $domain, $width = '200' ) {
echo sprintf('<img src="http://s.wordpress.com/mshots/v1/%s?w=%s" width="%s">', urlencode($domain .'/'), $width, $width );
echo sprintf('<img src="https://s.wordpress.com/mshots/v1/%s?w=%s" width="%s">', urlencode($domain .'/'), $width, $width );
}
}

0 comments on commit 68e8084

Please sign in to comment.
You can’t perform that action at this time.