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