mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 09:09:04 +01:00
Added the db_addslashes() call to name2id().
This commit is contained in:
parent
b0999ae0e1
commit
b221f83ec2
@ -553,8 +553,9 @@
|
|||||||
|
|
||||||
function name2id($cat_name)
|
function name2id($cat_name)
|
||||||
{
|
{
|
||||||
$this->db->query("SELECT cat_id FROM phpgw_categories WHERE cat_name='" . $cat_name . "' AND cat_appname='" . $this->app_name
|
$this->db->query("SELECT cat_id FROM phpgw_categories WHERE cat_name='" . $this->db->db_addslashes($cat_name) . "' "
|
||||||
. "' AND cat_owner=" . $this->account_id,__LINE__,__FILE__);
|
."AND cat_appname='" . $this->app_name . "' "
|
||||||
|
."AND cat_owner=" . $this->account_id,__LINE__,__FILE__);
|
||||||
|
|
||||||
if(!$this->db->num_rows())
|
if(!$this->db->num_rows())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user