mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fixes #5587: json_encode
is now used with JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE
where it makes sense, also it is now default for Json::encode()
This commit is contained in:
@ -28,10 +28,10 @@ class BaseJson
|
||||
* represented in terms of a [[JsExpression]] object.
|
||||
* @param mixed $value the data to be encoded
|
||||
* @param integer $options the encoding options. For more details please refer to
|
||||
* <http://www.php.net/manual/en/function.json-encode.php>.
|
||||
* <http://www.php.net/manual/en/function.json-encode.php>. Default is `JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE`.
|
||||
* @return string the encoding result
|
||||
*/
|
||||
public static function encode($value, $options = 0)
|
||||
public static function encode($value, $options = 320)
|
||||
{
|
||||
$expressions = [];
|
||||
$value = static::processData($value, $expressions, uniqid());
|
||||
|
Reference in New Issue
Block a user