From d2a7cbc43b399938c1cc200f23aa2042509b60af Mon Sep 17 00:00:00 2001 From: misol Date: Mon, 5 Jan 2009 06:14:14 +0000 Subject: [PATCH] =?UTF-8?q?=EB=B3=80=EC=88=98=ED=98=95=20=EC=84=A4?= =?UTF-8?q?=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@5222 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- .../editor/components/naver_map/naver_map.class.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/modules/editor/components/naver_map/naver_map.class.php b/modules/editor/components/naver_map/naver_map.class.php index 5c1150839..007209851 100644 --- a/modules/editor/components/naver_map/naver_map.class.php +++ b/modules/editor/components/naver_map/naver_map.class.php @@ -99,7 +99,7 @@ function transHTML($xml_obj) { $x = $xml_obj->attrs->x; $y = $xml_obj->attrs->y; - $marker = $xml_obj->attrs->marker; + $marker = urlencode($xml_obj->attrs->marker); $style = $xml_obj->attrs->style; preg_match_all('/(width|height)([^[:digit:]]+)([0-9]+)/i',$style,$matches); @@ -108,7 +108,7 @@ if(!$width) $width = 400; if(!$height) $height = 400; - $body_code = sprintf('
', $width, $height, Context::getRequestUri(), $width, $height, $x, $y, $marker, $width, $height); + $body_code = sprintf('
', $width, $height, Context::getRequestUri(), $width, $height, $x, $y, $marker, $width, $height); return $body_code; } @@ -117,15 +117,19 @@ $width = Context::get('width'); if(!$width) $width = 640; + settype($width,"float"); $height = Context::get('height'); if(!$height) $height = 480; + settype($height,"float"); $x = Context::get('x'); if(!$x) $x = 321198; + settype($x,"int"); $y = Context::get('y'); if(!$y) $y = 529730; + settype($y,"int"); $marker = Context::get('marker'); @@ -160,6 +164,10 @@ $marker_list = explode('|@|', $marker); $icon_no = 0; for($i=0;$i