[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: phpgwapi/inc class.categories.inc.php,1.74.2.2,1
From: |
Mark A Peters <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: phpgwapi/inc class.categories.inc.php,1.74.2.2,1.74.2.3 |
Date: |
Tue, 26 Mar 2002 13:39:30 -0500 |
Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv27626/phpgwapi/inc
Modified Files:
Tag: Version-0_9_14-branch
class.categories.inc.php
Log Message:
Added the db_addslashes() call to name2id().
Index: class.categories.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgwapi/inc/class.categories.inc.php,v
retrieving revision 1.74.2.2
retrieving revision 1.74.2.3
diff -C2 -r1.74.2.2 -r1.74.2.3
*** class.categories.inc.php 13 Mar 2002 21:31:12 -0000 1.74.2.2
--- class.categories.inc.php 26 Mar 2002 18:39:28 -0000 1.74.2.3
***************
*** 553,558 ****
function name2id($cat_name)
{
! $this->db->query("SELECT cat_id FROM phpgw_categories
WHERE cat_name='" . $cat_name . "' AND cat_appname='" . $this->app_name
! . "' AND cat_owner=" .
$this->account_id,__LINE__,__FILE__);
if(!$this->db->num_rows())
--- 553,559 ----
function name2id($cat_name)
{
! $this->db->query("SELECT cat_id FROM phpgw_categories
WHERE cat_name='" . $this->db->db_addslashes($cat_name) . "' "
! ."AND cat_appname='" . $this->app_name . "' "
! ."AND cat_owner=" .
$this->account_id,__LINE__,__FILE__);
if(!$this->db->num_rows())
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: phpgwapi/inc class.categories.inc.php,1.74.2.2,1.74.2.3,
Mark A Peters <address@hidden> <=