mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
Properly quote foreign key before searching
This commit is contained in:
parent
3dbab868e2
commit
8d6c063ae2
@ -528,7 +528,7 @@ class infolog_import_infologs_csv implements importexport_iface_import_plugin {
|
|||||||
// Search
|
// Search
|
||||||
if(egw_link::get_registry($app, 'query'))
|
if(egw_link::get_registry($app, 'query'))
|
||||||
{
|
{
|
||||||
$options = array('filter' => array("$custom_field = $value"));
|
$options = array('filter' => array("$custom_field = " . $GLOBALS['egw']->db->quote($value)));
|
||||||
$result = egw_link::query($app, '', $options);
|
$result = egw_link::query($app, '', $options);
|
||||||
|
|
||||||
// Only one allowed
|
// Only one allowed
|
||||||
|
Loading…
Reference in New Issue
Block a user