mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
some htmlentities against XSS
This commit is contained in:
parent
0aa813b7bf
commit
17ea20cbcc
@ -537,6 +537,7 @@
|
||||
break;
|
||||
list($style,$extra_link) = explode(',',$cell['size']);
|
||||
$value = strlen($value) > 1 && !$cell['no_lang'] ? lang($value) : $value;
|
||||
$value = nl2br(htmlentities($value));
|
||||
if ($value != '' && strstr($style,'b')) $value = $this->html->bold($value);
|
||||
if ($value != '' && strstr($style,'i')) $value = $this->html->italic($value);
|
||||
$html .= $value;
|
||||
@ -556,7 +557,7 @@
|
||||
case 'text': // size: [length][,maxLength]
|
||||
if ($readonly)
|
||||
{
|
||||
$html .= $this->html->bold($value);
|
||||
$html .= $this->html->bold(htmlentities($value));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user