getUrl, getFullUrl, getSiteUrl에 대해서 getNoEncodedUrl, getNoEncodedFullUrl, getNoEncodedSiteUrl 대응 함수를 추가 (url query에 대해 htmlspecialchars를 하지 않는 함수) 하고 XE 내부적으로 redirect하는 경우 getNoEncoded*Url 함수를 이용하도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6734 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-08-07 06:57:11 +00:00
parent 10c609b22c
commit 91ac64ba08
3 changed files with 44 additions and 6 deletions

View file

@ -761,7 +761,7 @@
/**
* @brief 요청받은 url에 args_list를 적용하여 return
**/
function getUrl($num_args=0, $args_list=array(), $domain = null) {
function getUrl($num_args=0, $args_list=array(), $domain = null, $encode = true) {
$oContext = &Context::getInstance();
return $oContext->_getUrl($num_args, $args_list, $domain);
}
@ -769,7 +769,7 @@
/**
* @brief 요청받은 url에 args_list를 적용하여 return
**/
function _getUrl($num_args=0, $args_list=array(), $domain = null) {
function _getUrl($num_args=0, $args_list=array(), $domain = null, $encode = true) {
static $site_module_info = null;
// 가상 사이트 정보를 구함
@ -892,7 +892,9 @@
else if($domain) $query = $this->getRequestUri(FOLLOW_REQUEST_SSL, $domain).$query;
else $query = getScriptPath().$query;
}
return htmlspecialchars($query);
if($encode) return htmlspecialchars($query);
return $query;
}
/**