위젯 변수값에 &가 있을 경우 제대로 파싱하지 못하여 위젯이 나타나지 않던 문제 해결

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2997 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-11-19 05:37:19 +00:00
parent 112f28bf81
commit 9d9efab393

View file

@ -182,8 +182,13 @@
* @brief 위젯 코드를 실제 php코드로 변경
**/
function transWidget($matches) {
$oContext = &Context::getInstance();
$buff = trim($matches[0]);
$buff = preg_replace_callback('/([^=^"^ ]*)=([^ ^>]*)/i', array($oContext, _fixQuotation), $buff);
$buff = str_replace("&","&",$buff);
$oXmlParser = new XmlParser();
$xml_doc = $oXmlParser->parse(trim($matches[0]));
$xml_doc = $oXmlParser->parse(trim($buff));
if($xml_doc->img) $vars = $xml_doc->img->attrs;
else $vars = $xml_doc->attrs;