mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
replaced htmlentities with htmlspecialchars
This commit is contained in:
parent
1589da187d
commit
db98ed31a1
@ -543,7 +543,7 @@
|
|||||||
break;
|
break;
|
||||||
list($style,$extra_link) = explode(',',$cell_options);
|
list($style,$extra_link) = explode(',',$cell_options);
|
||||||
$value = strlen($value) > 1 && !$cell['no_lang'] ? lang($value) : $value;
|
$value = strlen($value) > 1 && !$cell['no_lang'] ? lang($value) : $value;
|
||||||
$value = nl2br(htmlentities($value));
|
$value = nl2br(htmlspecialchars($value));
|
||||||
if ($value != '' && strstr($style,'b')) $value = $this->html->bold($value);
|
if ($value != '' && strstr($style,'b')) $value = $this->html->bold($value);
|
||||||
if ($value != '' && strstr($style,'i')) $value = $this->html->italic($value);
|
if ($value != '' && strstr($style,'i')) $value = $this->html->italic($value);
|
||||||
$html .= $value;
|
$html .= $value;
|
||||||
@ -563,7 +563,7 @@
|
|||||||
case 'text': // size: [length][,maxLength]
|
case 'text': // size: [length][,maxLength]
|
||||||
if ($readonly)
|
if ($readonly)
|
||||||
{
|
{
|
||||||
$html .= $this->html->bold(htmlentities($value));
|
$html .= $this->html->bold(htmlspecialchars($value));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user