BBCode SSL images

1 year 1 week ago #294045 by cybersholt

I was working with Uddeim for a client today and noticed ssl images are broken, it seems that an extra http:// is prepended to the actual url. This looks to be hard coded in a preg_replace in /components/com_uddeim/bbparser.php @ line 112
$string = preg_replace( "/\[img\](.*?)\[\/img\]/si", "[img]http://$1[/img]", $string );

Changing that to:

$string = preg_replace( "/\[img\](.*?)\[\/img\]/si", "[img]$1[/img]", $string );

Seems to fix the problem. Full sample code can be see at:
Moderators: beatnantslabbikrileon
Time to create page: 0.118 seconds