Skip to Content Skip to Menu

BBCode SSL images

7 years 6 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
Code:
$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 or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum