mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
"correctly quoting the id's in ajax_search, as single quotes otherwise mess up the javascript in the ajax response (eg. caused by single quotes in Wiki Page Names)"
This commit is contained in:
parent
9e81d70cb7
commit
a603c8bb2e
@ -605,7 +605,7 @@ class link_widget
|
|||||||
foreach($found as $id => $option)
|
foreach($found as $id => $option)
|
||||||
{
|
{
|
||||||
if (!is_array($option)) $option = array('label' => $option);
|
if (!is_array($option)) $option = array('label' => $option);
|
||||||
$script .= "opt = select.options[select.options.length] = new Option('".addslashes($option['label'])."','$id');\n";
|
$script .= "opt = select.options[select.options.length] = new Option('".addslashes($option['label'])."','".addslashes($id)."');\n";
|
||||||
if (count($option) > 1)
|
if (count($option) > 1)
|
||||||
{
|
{
|
||||||
foreach($option as $name => $value)
|
foreach($option as $name => $value)
|
||||||
|
Loading…
Reference in New Issue
Block a user