#19548552 editor.model.php에서 eval 코드 제거

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8105 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-02-17 06:31:34 +00:00
parent 3ffbbddc97
commit bc9020fad5

View file

@ -518,8 +518,8 @@
// 클래스 파일을 읽은 후 객체 생성
require_once($class_file);
$eval_str = sprintf('$oComponent = new %s("%s","%s");', $component, $editor_sequence, $class_path);
@eval($eval_str);
$tmp_fn = create_function('', sprintf('return new %s("%s","%s");', $component, $editor_sequence, $class_path));
$oComponent = $tmp_fn();
if(!$oComponent) return new Object(-1, sprintf(Context::getLang('msg_component_is_not_founded'), $component));
// 설정 정보를 추가