issue 2135 modified str_replace params to array()

git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11178 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
chschy 2012-09-07 00:54:33 +00:00
parent 5da785312c
commit d3284d2e1c

View file

@ -484,8 +484,7 @@
if($header_script)
{
$header_script = str_replace('"','\\"',$header_script);
$buff .= sprintf(' $layout_info->header_script = "%s"; ', str_replace('$','\$',$header_script));
$buff .= sprintf(' $layout_info->header_script = "%s"; ', str_replace(array('$','"'),array('\$','\\"'),$header_script));
}
$buff = '<?php if(!defined("__ZBXE__")) exit(); '.$buff.' ?>';