From 77cf8dfa1c6ae0517ac108331156dc64c2d03e96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=91=B8=EC=8B=9C=EC=95=84?= Date: Sat, 16 Nov 2013 00:14:17 +0900 Subject: [PATCH 1/3] Update sitemap.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 사이트 메뉴 편집 > 바로가기 메뉴타입 URL 링크 부분에서 주소 입력은 제대로 잘 되고 작동도 잘 되지만 메뉴 수정에 들어가면 URL 링크 부분에 '&' 가 '&' 로 노출되어 확인 눌러 저장해 버리면 주소가 & 포함된 주소로 바뀌어 버리는 소소한 문제점이 있었습니다. --- modules/menu/tpl/sitemap.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/menu/tpl/sitemap.html b/modules/menu/tpl/sitemap.html index 3903c99cd..41668a9f0 100644 --- a/modules/menu/tpl/sitemap.html +++ b/modules/menu/tpl/sitemap.html @@ -1881,6 +1881,9 @@ jQuery(function($){ showMenuSelector($(this).find('._menuSelector_menuTreeContainer'), htInfo.url); }else{ // URL shortcut + var htInfo_url = htInfo.url; + htInfo_url = htInfo_url.replace(/&/g, '&'); + htInfo.url = htInfo_url; $(this).find('a[href="#fix_linkUrl"]').click(); $(this).find('._url_link').val($('
').text(htInfo.url).text()); From a7a7a54a5e6509d6f6f081e3d024e31b865a3f25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=91=B8=EC=8B=9C=EC=95=84?= Date: Sat, 16 Nov 2013 00:24:01 +0900 Subject: [PATCH 2/3] Update file_list.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit xe admin 에서 콘텐츠 > 파일 메뉴의 등록된 파일들의 링크 주소가 잘못 노출되는것을 바로 잡습니다. & 로 나와야 되는데 amp 로 노출되는 현상입니다. --- modules/file/tpl/file_list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/file/tpl/file_list.html b/modules/file/tpl/file_list.html index ffe181a40..7f29496dc 100644 --- a/modules/file/tpl/file_list.html +++ b/modules/file/tpl/file_list.html @@ -70,7 +70,7 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}'; - {htmlspecialchars($val->source_filename)} + {htmlspecialchars($val->source_filename)} {FileHandler::filesize($val->file_size)} {$val->download_count} From ba6b8c5784f127494261e568530fefd94caeb87d Mon Sep 17 00:00:00 2001 From: ngleader Date: Sat, 23 Nov 2013 21:59:42 +0900 Subject: [PATCH 3/3] =?UTF-8?q?#57=20htmlspecialchars()=EC=9D=98=20double?= =?UTF-8?q?=5Fencode=3Dfalse=20=EC=A0=81=EC=9A=A9.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/file/tpl/file_list.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/file/tpl/file_list.html b/modules/file/tpl/file_list.html index 7f29496dc..5c145a457 100644 --- a/modules/file/tpl/file_list.html +++ b/modules/file/tpl/file_list.html @@ -70,7 +70,7 @@ xe.lang.msg_empty_search_keyword = '{$lang->msg_empty_search_keyword}'; - {htmlspecialchars($val->source_filename)} + {htmlspecialchars($val->source_filename, ENT_COMPAT | ENT_HTML401, 'UTF-8', false)} {FileHandler::filesize($val->file_size)} {$val->download_count}