mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
select: fixed quoting of option texts in selectbox,
htmlspecialchars: dont quote < > as they are already entities
This commit is contained in:
parent
22f7aaf56c
commit
c6d1a7e325
@ -130,7 +130,7 @@ class html
|
||||
$str = @htmlspecialchars($str,ENT_COMPAT,$this->charset);
|
||||
|
||||
// we need '&#' unchanged, so we translate it back
|
||||
$str = str_replace('&#','&#',$str);
|
||||
$str = str_replace(array('&#','&nbsp;','&lt;','&gt;'),array('&#',' ','<','>'),$str);
|
||||
|
||||
return $str;
|
||||
}
|
||||
@ -175,7 +175,7 @@ class html
|
||||
{
|
||||
$out .= ' selected="1"';
|
||||
}
|
||||
$out .= ">" . ($no_lang || $text == '' ? $text : lang($text)) . "</option>\n";
|
||||
$out .= ">" . $this->htmlspecialchars($no_lang || $text == '' ? $text : lang($text)) . "</option>\n";
|
||||
}
|
||||
$out .= "</select>\n";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user