diff --git a/modules/editor/components/image_link/image_link.class.php b/modules/editor/components/image_link/image_link.class.php index c0385bd57..c1167c36d 100644 --- a/modules/editor/components/image_link/image_link.class.php +++ b/modules/editor/components/image_link/image_link.class.php @@ -62,12 +62,11 @@ class image_link extends EditorHandler $sslPort = $sslPort != '443' ? ':'.$sslPort : ''; // Image containing the address to the address conversion request uri (rss output, etc. purposes) - $temp_src = explode('/', $src); if(substr($src, 0, 2) === './') { $src = \RX_BASEURL . substr($src, 2); } - elseif(substr($src, 0, 1) !== '/' && strpos($temp_src[0], ':') !== false) + elseif(substr($src, 0, 1) !== '/' && !preg_match('!^https?:!i', $src)) { $src = \RX_BASEURL . $src; }