List text values should be escaped, since they come directly from the model values

Fxies https://github.com/rainlab/user-plugin/pull/37
This commit is contained in:
Samuel Georges 2015-02-21 19:16:44 +11:00
parent a4418aeab8
commit 320f7bfb1a
1 changed files with 9 additions and 1 deletions

View File

@ -774,7 +774,15 @@ class Lists extends WidgetBase
//
/**
* Process as boolean switch
* Process as text, escape the value
*/
protected function evalTextTypeValue($record, $column, $value)
{
return htmlentities($value, ENT_QUOTES, 'UTF-8', false);
}
/**
* Process as partial reference
*/
protected function evalPartialTypeValue($record, $column, $value)
{