Properly quote foreign key before searching

This commit is contained in:
Nathan Gray 2011-12-27 15:36:35 +00:00
parent 3dbab868e2
commit 8d6c063ae2

View File

@ -528,7 +528,7 @@ class infolog_import_infologs_csv implements importexport_iface_import_plugin {
// Search
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);
// Only one allowed