From 466188ebd77a4ef07fce459d9a591f4b45b08d44 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 3 Apr 2012 20:14:37 -0700 Subject: [PATCH] re-opened bug #363 --- mod/admin.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/mod/admin.php b/mod/admin.php index 8caa763707..a395027c11 100755 --- a/mod/admin.php +++ b/mod/admin.php @@ -222,6 +222,11 @@ function admin_page_site_post(&$a){ `poco` = replace(`poco` , 'http:' , 'https:') where `self` = 1" ); + q("update `profile` set + `photo` = replace(`photo` , 'http:' , 'https:'), + `thumb` = replace(`thumb` , 'http:' , 'https:') + where 1 " + ); } elseif($ssl_policy == SSL_POLICY_SELFSIGN) { q("update `contact` set @@ -236,6 +241,11 @@ function admin_page_site_post(&$a){ `poco` = replace(`poco` , 'https:' , 'http:') where `self` = 1" ); + q("update `profile` set + `photo` = replace(`photo` , 'https:' , 'http:'), + `thumb` = replace(`thumb` , 'https:' , 'http:') + where 1 " + ); } } set_config('system','ssl_policy',$ssl_policy); -- 2.39.5