Open abpercobaan opened 7 years ago
When i create or update a role and the value of data is not a valid json it will raise Invalid Parameter – yii\base\InvalidParamException Syntax error.
on this line:
$this->_item->data = $this->data === null || $this->data === '' ? null : Json::decode($this->data);
Please validate this.
and by the way, i want to know what's this data used for?
Thanks in advance
the same issue still presents
https://github.com/yiisoft/yii2/blob/e9b33916b61ecabbe7a754aac7d9f945e4699038/framework/rbac/DbManager.php#L337
uses serialize() instead of Json::decode
When i create or update a role and the value of data is not a valid json it will raise Invalid Parameter – yii\base\InvalidParamException Syntax error.
on this line:
Please validate this.
and by the way, i want to know what's this data used for?
Thanks in advance