encode email in Formatter

avoid XSS with emails in format  "Carsten Brandt <mail@cebe.cc>"
This commit is contained in:
Carsten Brandt
2013-11-21 14:44:40 +01:00
parent 248e0cb916
commit f3ab5d999b

View File

@@ -190,7 +190,7 @@ class Formatter extends Component
if ($value === null) { if ($value === null) {
return $this->nullDisplay; return $this->nullDisplay;
} }
return Html::mailto($value); return Html::mailto(Html::encode($value), $value);
} }
/** /**