Title: Patch for HTTPS sites
Last modified: August 22, 2016

---

# Patch for HTTPS sites

 *  [Mike Doherty](https://wordpress.org/support/users/_doherty/)
 * (@_doherty)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/patch-for-https-sites/)
 * Currently, the plugin loads images over HTTP, which is a security risk. If I 
   submit a patch to load images over HTTPS, would you cut a new release?
 * [https://wordpress.org/plugins/mustavatar/](https://wordpress.org/plugins/mustavatar/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [Mike Doherty](https://wordpress.org/support/users/_doherty/)
 * (@_doherty)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/patch-for-https-sites/#post-5442829)
 * `
    From 96af06ceb97de122e92d52325377f1e891b32065 Mon Sep 17 00:00:00 2001 From:
   Mike Doherty <mike@mikedoherty.ca> Date: Sat, 1 Nov 2014 22:25:54 -0700 Subject:[
   PATCH] Use mustachio.herokuapp.com, which supports HTTPS
 * I've used a protocol-relative URL, which will connect over
    either HTTP or HTTPS,
   according to how the page the link is in was loaded. That is, only secure sites
   will connect with TLS, so insecure ones are spared the "penalty" of TLS. --- 
   mustavatar.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-)
 * diff --git a/mustavatar.php b/mustavatar.php
    index c5f66ea..a3e1854 100644 ---
   a/mustavatar.php +++ b/mustavatar.php @@ -9,7 +9,7 @@ * License: GPL2 */
 * -add_filter( 'get_avatar', 'mustavatar' );
    +add_filter( 'get_avatar', 'mustavatar');
 *  /*
    * Add mustached goodness! @@ -20,12 +20,11 @@ function mustavatar($imgtag){
   $url = $matches[2]; // es-cah-pay $escurl = urlencode( $url ); - + // 'stache
   it! - $imgtag = $matches[1] . "src='http://mustachify.me?src=" . $escurl . "'".
   $matches[3]; + $imgtag = $matches[1] . "src='//mustachio.herokuapp.com?src=" .
   $escurl . "'" . $matches[3]; } - + return $imgtag; - }
 * --
    1.9.2

Viewing 1 replies (of 1 total)

The topic ‘Patch for HTTPS sites’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mustavatar.svg)
 * [Mustavatar](https://wordpress.org/plugins/mustavatar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mustavatar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mustavatar/)
 * [Active Topics](https://wordpress.org/support/plugin/mustavatar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mustavatar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mustavatar/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Mike Doherty](https://wordpress.org/support/users/_doherty/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/patch-for-https-sites/#post-5442829)
 * Status: not resolved