mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 17:51:40 +09:00
issue 2135 occur header script bug when using '$'
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11109 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6d40f3317f
commit
5c90ee1e1d
1 changed files with 5 additions and 1 deletions
|
|
@ -482,7 +482,11 @@
|
|||
$layout_config = $oModuleModel->getModulePartConfig('layout', $layout_srl);
|
||||
$header_script = trim($layout_config->header_script);
|
||||
|
||||
if($header_script) $buff .= sprintf(' $layout_info->header_script = "%s"; ', str_replace('"','\\"',$header_script));
|
||||
if($header_script)
|
||||
{
|
||||
$header_script = str_replace('"','\\"',$header_script);
|
||||
$buff .= sprintf(' $layout_info->header_script = "%s"; ', str_replace('$','\$',$header_script));
|
||||
}
|
||||
|
||||
$buff = '<?php if(!defined("__ZBXE__")) exit(); '.$buff.' ?>';
|
||||
FileHandler::writeFile($cache_file, $buff);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue