zbXE설치시 config파일을 생성할때 db정보의 값에 $ 표시등이 있을 경우를 대비하도록 코드 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3945 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-03-17 03:25:20 +00:00
parent 3379af6dc1
commit 1b8c765148

View file

@ -186,7 +186,7 @@
$buff = '<?php if(!defined("__ZBXE__")) exit();'."\n";
foreach($db_info as $key => $val) {
$buff .= sprintf("\$db_info->%s = \"%s\";\n", $key, $val);
$buff .= sprintf("\$db_info->%s = '%s';\n", $key, str_replace("'","\\'",$val));
}
$buff .= "?>";