phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: phpgwapi/inc class.categories.inc.php,1.78,1.79


From: Mark A Peters <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgwapi/inc class.categories.inc.php,1.78,1.79
Date: Tue, 26 Mar 2002 14:25:54 -0500

Update of /cvsroot/phpgroupware/phpgwapi/inc
In directory subversions:/tmp/cvs-serv1962/phpgwapi/inc

Modified Files:
        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.78
retrieving revision 1.79
diff -C2 -r1.78 -r1.79
*** class.categories.inc.php    16 Mar 2002 03:30:03 -0000      1.78
--- class.categories.inc.php    26 Mar 2002 19:25:49 -0000      1.79
***************
*** 554,559 ****
                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())
--- 554,560 ----
                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())




reply via email to

[Prev in Thread] Current Thread [Next in Thread]