Changed the addslashes to db_addslashes.

This commit is contained in:
skeeter 2001-09-18 03:46:28 +00:00
parent d23736a1dc
commit 33bd4e9714

View File

@ -84,8 +84,8 @@
@$phpgw_setup->db->query("DELETE FROM $configtbl WHERE config_name='" . $setting . "'"); @$phpgw_setup->db->query("DELETE FROM $configtbl WHERE config_name='" . $setting . "'");
if($value) if($value)
{ {
$phpgw_setup->db->query("INSERT INTO $configtbl (config_app,config_name, config_value) VALUES ('phpgwapi','" . addslashes($setting) $phpgw_setup->db->query("INSERT INTO $configtbl (config_app,config_name, config_value) VALUES ('phpgwapi','" . $phpgw_setup->db->db_addslashes($setting)
. "','" . addslashes($value) . "')"); . "','" . $phpgw_setup->db->db_addslashes($value) . "')");
} }
} }
$phpgw_setup->db->transaction_commit(); $phpgw_setup->db->transaction_commit();