mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Fix incorrect URL conversion in image_link component
This commit is contained in:
parent
6aebe472e2
commit
cc21af669f
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue