diff --git a/sections/forums/thread.php b/sections/forums/thread.php index 226a5cfc..4054b200 100644 --- a/sections/forums/thread.php +++ b/sections/forums/thread.php @@ -337,7 +337,7 @@ // Image proxy CTs if(check_perms('site_proxy_images') && !empty($UserTitle)) { - $UserTitle = preg_replace_callback('~src=("?)(.+?)(["\s>])~', function($Matches) { + $UserTitle = preg_replace_callback('~src=("?)(http.+?)(["\s>])~', function($Matches) { return 'src='.$Matches[1].'http'.($SSL?'s':'').'://'.SITE_URL.'/image.php?c=1&i='.urlencode($Matches[2]).$Matches[3]; }, $UserTitle); } diff --git a/sections/user/user.php b/sections/user/user.php index 795a35b4..09133296 100644 --- a/sections/user/user.php +++ b/sections/user/user.php @@ -114,7 +114,7 @@ // Image proxy CTs $DisplayCustomTitle = $CustomTitle; if(check_perms('site_proxy_images') && !empty($CustomTitle)) { - $DisplayCustomTitle = preg_replace_callback('~src=("?)(.+?)(["\s>])~', function($Matches) { + $DisplayCustomTitle = preg_replace_callback('~src=("?)(http.+?)(["\s>])~', function($Matches) { return 'src='.$Matches[1].'http'.($SSL?'s':'').'://'.SITE_URL.'/image.php?c=1&i='.urlencode($Matches[2]).$Matches[3]; }, $CustomTitle); }