mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-20 09:58:04 +02:00
fix encoding of favorites, so they can eg. contain single quotes
This commit is contained in:
parent
f3cb31ccf5
commit
2de3cdb780
@ -1811,7 +1811,7 @@ $LAB.setOptions({AlwaysPreserveOrder:true,BasePath:"'.$GLOBALS['egw_info']['serv
|
|||||||
{
|
{
|
||||||
$href = "javascript:app.$app.setState(" . json_encode($filter,JSON_FORCE_OBJECT) . ');';
|
$href = "javascript:app.$app.setState(" . json_encode($filter,JSON_FORCE_OBJECT) . ');';
|
||||||
$html .= "<li data-id='$name' class='ui-menu-item' role='menuitem'>\n";
|
$html .= "<li data-id='$name' class='ui-menu-item' role='menuitem'>\n";
|
||||||
$html .= "<a href='$href' class='ui-corner-all' tabindex='-1'>";
|
$html .= '<a href="'.htmlspecialchars($href).'" class="ui-corner-all" tabindex="-1">';
|
||||||
$html .= "<div class='" . ($name == $default_filter ? 'ui-icon ui-icon-heart' : 'sideboxstar') . "'></div>".
|
$html .= "<div class='" . ($name == $default_filter ? 'ui-icon ui-icon-heart' : 'sideboxstar') . "'></div>".
|
||||||
$filter['name'] .($filter['group'] != false ? " ♦" :"");
|
$filter['name'] .($filter['group'] != false ? " ♦" :"");
|
||||||
$html .= ($filter['group'] != false && !$is_admin || $name == 'blank' ? "" :
|
$html .= ($filter['group'] != false && !$is_admin || $name == 'blank' ? "" :
|
||||||
|
Loading…
x
Reference in New Issue
Block a user