plugin not https compliant
-
Links to avatar image files are always using a http URL, this breaks the security check when using this plugin on a https wordpress site.
I have made the following change in the plugin code to use http or https according to the site configuration :
--- wp-user-avatars/wp-user-avatars/includes/common.php 2018-04-25 08:18:59.000000000 +0200 +++ wp-user-avatars/wp-user-avatars/includes/common.php 2018-14-26 14:45:58.000000000 +0100 @@ -343,8 +343,8 @@ } // URL corrections - if ( 'http' !== substr( $user_avatars[ $size ], 0, 4 ) ) { - $user_avatars[ $size ] = home_url( $user_avatars[ $size ] ); + if ( 'http' == substr( $user_avatars[ $size ], 0, 4 ) ) { + $user_avatars[ $size ] = parse_url($user_avatars[ $size ], PHP_URL_PATH); } // Maybe switch back
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘plugin not https compliant’ is closed to new replies.