From 65985468ead2a99d4c3ebafdfc1e49a5e6f4e91b Mon Sep 17 00:00:00 2001 From: misol Date: Mon, 22 Jun 2009 06:24:52 +0000 Subject: [PATCH] =?UTF-8?q?=EC=A0=88=EB=8C=80=20=EA=B2=BD=EB=A1=9C?= =?UTF-8?q?=EB=A1=9C=20=EC=9E=91=EC=84=B1=EB=90=9C=20=EC=9D=B4=EB=AF=B8?= =?UTF-8?q?=EC=A7=80=20=EA=B2=BD=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6634 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/editor/components/image_link/image_link.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/editor/components/image_link/image_link.class.php b/modules/editor/components/image_link/image_link.class.php index c5c366da0..6ab1a578b 100644 --- a/modules/editor/components/image_link/image_link.class.php +++ b/modules/editor/components/image_link/image_link.class.php @@ -61,7 +61,11 @@ // 이미지 주소를 request uri가 포함된 주소로 변환 (rss출력, 등등을 위함) $temp_src = explode('/', $src); if($temp_src[0]=='.') $src = Context::getRequestUri().substr($src, 2); - elseif($temp_src[0]=='' && $src) $src = Context::getRequestUri().substr($src, 1); + elseif($temp_src[0]=='' && $src) { + if($_SERVER['HTTPS']=='on') $http_src = 'https://'; + else $http_src = 'http://'; + $src = $http_src.$_SERVER['HTTP_HOST'].$src; + } if(!$alt) $alt = $src; $attr_output = array();