BBCode SSL images

5 years 4 months ago #294045 by cybersholt
BBCode SSL images was created 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:

Please Log in to join the conversation.

Moderators: beatnantslabbikrileon
Time to create page: 0.152 seconds