diff --git a/app/helpers/UtilsHelper.php b/app/helpers/UtilsHelper.php index ef338f894..2a676b38d 100644 --- a/app/helpers/UtilsHelper.php +++ b/app/helpers/UtilsHelper.php @@ -734,6 +734,7 @@ function getSmileyPath($id) function protectPicture($url) { $emptyPicture = \Movim\Route::urlize('picture', ''); + $emptyPicture = preg_replace("(^//)", 'https://', $emptyPicture); // The picture is already protected if (substr($url, 0, strlen($emptyPicture)) === $emptyPicture) {