You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I have detected that there is xss attack not prevented. I guess because of these code
`
$comments[$Comment->id] = $Comment->attributes;
$CommentListWidget
->getView()
->registerJs('jQuery("#' . $CommentListWidget->options['id'] . '").yiiCommentsList(' . Json::encode($comments) . ');');`
As can be seen from these codes there seems to be no encoding of each attributes in Comment object.
The text was updated successfully, but these errors were encountered:
Hi! I have detected that there is xss attack not prevented. I guess because of these code
`
$comments[$Comment->id] = $Comment->attributes;
$CommentListWidget
->getView()
->registerJs('jQuery("#' . $CommentListWidget->options['id'] . '").yiiCommentsList(' . Json::encode($comments) . ');');`
As can be seen from these codes there seems to be no encoding of each attributes in Comment object.
The text was updated successfully, but these errors were encountered: