BBCode SSL images

6 years 10 months ago #294045 by cybersholt
BBCode SSL images was created by cybersholt
Hello,

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: gist.github.com/cybersholt/f8045e64d5fe857c40292fa9a4e4775e

Please Log in to join the conversation.

Moderators: beatnantslabbikrileon
Time to create page: 0.129 seconds