Remove the baseurl where possible to avoid mixed content

This commit is contained in:
Michael Vogel 2016-02-17 00:01:24 +01:00
commit f7537c9e90
7 changed files with 46 additions and 44 deletions

View file

@ -920,6 +920,10 @@ class App {
}
function get_cached_avatar_image($avatar_image){
// Just remove the base url. This avoid mixed content
$avatar_image = normalise_link($avatar_image);
$base = normalise_link($this->get_baseurl());
$avatar_image = str_replace($base."/", "", $avatar_image);
return $avatar_image;
// The following code is deactivated. It doesn't seem to make any sense and it slows down the system.