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:
@ -229,6 +229,6 @@ class CompareValidator extends Validator
|
||||
|
||||
ValidationAsset::register($view);
|
||||
|
||||
return 'yii.validation.compare(value, messages, ' . json_encode($options) . ');';
|
||||
return 'yii.validation.compare(value, messages, ' . json_encode($options, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) . ');';
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user