use https for gravatar
authorArun Persaud <arun@nubati.net>
Sat, 5 Mar 2016 18:36:38 +0000 (10:36 -0800)
committerArun Persaud <arun@nubati.net>
Sun, 10 Apr 2016 18:30:04 +0000 (11:30 -0700)
include/functions.php
include/output.php
include/user.php

index 9736182..888be82 100644 (file)
@@ -1073,7 +1073,7 @@ function display_single_user($r,$start=0)
       $lastlogin = strtotime($r[6]);
       date_default_timezone_set($timezone);
       $timenow   = strtotime(date("Y-m-d H:i:s"));
-      $gravatar = "$name<br />\n       <img class=\"gravatar\" title=\"$name\" src=\"http://www.gravatar.com/avatar/".
+      $gravatar = "$name<br />\n       <img class=\"gravatar\" title=\"$name\" src=\"https://www.gravatar.com/avatar/".
        md5(strtolower(trim($email)))."?d=identicon\" alt=\"$name's gravatar\" />";
 
       echo "  <div class=\"table".($pos-1)."\">\n";
index 279d4a4..8dbf3d6 100644 (file)
@@ -494,7 +494,7 @@ function output_navbar()
       echo "    <div class=\"navbar-header\">";
       echo "         <a href=\"".$INDEX."\">\n";
       echo "           <img class=\"grav navbar-right\" title=\""._('last login').": ".date("r",$unixtime)."\" ";
-      echo             "src=\"http://www.gravatar.com/avatar/".md5(strtolower(trim($email)))."?d=identicon\" /></a>\n";
+      echo             "src=\"https://www.gravatar.com/avatar/".md5(strtolower(trim($email)))."?d=identicon\" /></a>\n";
       echo '         <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-elements">
                          <span class="sr-only">Toggle navigation</span>
                          <span class="icon-bar"></span>
index 7acf726..19b9544 100644 (file)
@@ -331,7 +331,7 @@ else
        for($i=0;$i<7;$i++)
          {
            echo '<img class="gravatar" title="'.$names[$i].
-             '" src="http://www.gravatar.com/avatar/'.
+             '" src="https://www.gravatar.com/avatar/'.
              md5(strtolower(trim($emails[$i])))."?d=identicon\" />\n";
          }
        echo "</p>\n";