mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Remove unnecessary encoding of /, &, ' in template v2 JSON output
This commit is contained in:
parent
c53dab4805
commit
0b9131e664
4 changed files with 9 additions and 4 deletions
|
|
@ -59,6 +59,7 @@ class Template
|
|||
protected static $_mtime;
|
||||
protected static $_delay_compile;
|
||||
protected static $_json_options;
|
||||
protected static $_json_options2;
|
||||
|
||||
/**
|
||||
* Provided for compatibility with old TemplateHandler.
|
||||
|
|
@ -100,6 +101,10 @@ class Template
|
|||
{
|
||||
self::$_json_options = \JSON_HEX_TAG | \JSON_HEX_AMP | \JSON_HEX_APOS | \JSON_HEX_QUOT | \JSON_UNESCAPED_UNICODE;
|
||||
}
|
||||
if (self::$_json_options2 === null)
|
||||
{
|
||||
self::$_json_options2 = \JSON_HEX_TAG | \JSON_HEX_QUOT | \JSON_UNESCAPED_UNICODE | \JSON_UNESCAPED_SLASHES;
|
||||
}
|
||||
|
||||
// If paths were provided, initialize immediately.
|
||||
if ($dirname && $filename)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue