Optimizer 사용시 css파일이 utf-8이 아닌 경우 오류가 생기는 것을 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2715 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-10-10 01:50:37 +00:00
parent 2906a845af
commit 88f4bb1ba5
2 changed files with 13 additions and 0 deletions

View file

@ -355,6 +355,17 @@
return $obj;
}
/**
* @brief 특정 문자열만 utf-8 변경
**/
function convertEncodingStr($str) {
$obj->str = $str;
$obj = Context::convertEncoding($obj);
return $obj->str;
}
/**
* @brief response method를 강제로 지정 (기본으로는 request method를 이용함)
*

View file

@ -91,6 +91,8 @@
$file = $targets[$i];
$str = FileHandler::readFile($file);
$str = Context::convertEncodingStr($str);
// css 일경우 background:url() 변경
if($type == "css") $str = $this->replaceCssPath($file, $str);