mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-18 23:43:19 +08:00
no xss for attribute error messages that contain {value}
This commit is contained in:
@@ -345,7 +345,7 @@
|
||||
var $container = $form.find(attribute.container);
|
||||
var $error = $container.find(attribute.error);
|
||||
if (hasError) {
|
||||
$error.html(messages[attribute.name][0]);
|
||||
$error.text(messages[attribute.name][0]);
|
||||
$container.removeClass(data.settings.validatingCssClass + ' ' + data.settings.successCssClass)
|
||||
.addClass(data.settings.errorCssClass);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user