mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
에디터 이미지 콤포넌트 비정규 SSL 포트에서 포트가 지워지는 문제 해결
This commit is contained in:
parent
47ebe210e0
commit
8940045035
1 changed files with 12 additions and 4 deletions
|
|
@ -58,15 +58,23 @@ class image_link extends EditorHandler
|
|||
$src = str_replace(array('&','"'), array('&','&qout;'), $src);
|
||||
$src = str_replace('&', '&', $src);
|
||||
|
||||
$sslPort = Context::get('_https_port');
|
||||
$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 = Context::getRequestUri().substr($src, 2);
|
||||
if(substr($src, 0,2)=='./')
|
||||
{
|
||||
$src = Context::getRequestUri().substr($src, 2);
|
||||
}
|
||||
else if(substr($src , 0, 1)=='/')
|
||||
{
|
||||
$http_src = RX_SSL ? 'https://' : 'http://';
|
||||
$src = $http_src.$_SERVER['HTTP_HOST'].$src;
|
||||
$src = Rhymix\Framework\URL::getCurrentDomainURL($src);
|
||||
}
|
||||
else if(!strpos($temp_src[0],':') && $src)
|
||||
{
|
||||
$src = Context::getRequestUri().$src;
|
||||
}
|
||||
else if(!strpos($temp_src[0],':') && $src) $src = Context::getRequestUri().$src;
|
||||
|
||||
$attr_output = array();
|
||||
$attr_output = array("src=\"".$src."\"");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue