Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

BBCode SSL images

7 years 7 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