Fix #1496 close PHP tag in case a rogue module tries to append stuff to menu cache file

This commit is contained in:
Kijin Sung 2020-12-18 21:40:02 +09:00
parent ff6322e9ce
commit 0b317e1168

View file

@ -1841,7 +1841,7 @@ class menuAdminController extends menu
'header("Cache-Control: post-check=0, pre-check=0", false);' . PHP_EOL .
'header("Pragma: no-cache");' . PHP_EOL .
'%s' . PHP_EOL .
'$oContext->close();' . PHP_EOL .
'$oContext->close(); ?' . '>' . PHP_EOL .
'<root>%s</root>',
$header_script,
$this->getXmlTree($tree[0], $tree, $site_srl, $domain)
@ -1857,7 +1857,7 @@ class menuAdminController extends menu
'%s; ' . PHP_EOL .
'$menu->list = array(%s); ' . PHP_EOL .
'if(!$is_admin) { recurciveExposureCheck($menu->list); }' . PHP_EOL .
'Context::set("included_menu", $menu); ' . PHP_EOL,
'Context::set("included_menu", $menu); ?' . '>' . PHP_EOL,
$header_script,
$php_output['name'],
$php_output['buff']