phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: timetrack admin5.php,1.1.2.1,1.1.2.2


From: Mark A Peters <address@hidden>
Subject: [Phpgroupware-cvs] CVS: timetrack admin5.php,1.1.2.1,1.1.2.2
Date: Sun, 14 Apr 2002 11:40:47 -0400

Update of /cvsroot/phpgroupware/timetrack
In directory subversions:/tmp/cvs-serv27608/timetrack

Modified Files:
      Tag: Version-0_9_14-branch
        admin5.php 
Log Message:
Needed to do db_addslashes() for companies that have slashes in the name.

Index: admin5.php
===================================================================
RCS file: /cvsroot/phpgroupware/timetrack/admin5.php,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -r1.1.2.1 -r1.1.2.2
*** admin5.php  14 Mar 2002 19:26:33 -0000      1.1.2.1
--- admin5.php  14 Apr 2002 15:40:44 -0000      1.1.2.2
***************
*** 157,161 ****
         // Check to see if $cname is already in the db before trying to add it
         $GLOBALS['phpgw']->db->query("SELECT company_name from 
phpgw_ttrack_customers "
!            . "WHERE company_name='$cname'");
         if($GLOBALS['phpgw']->db->num_rows() > 0)
         {
--- 157,161 ----
         // Check to see if $cname is already in the db before trying to add it
         $GLOBALS['phpgw']->db->query("SELECT company_name from 
phpgw_ttrack_customers "
!            . "WHERE 
company_name='".$GLOBALS['phpgw']->db->db_addslashes($cname)."'",__LINE__,__FILE__);
         if($GLOBALS['phpgw']->db->num_rows() > 0)
         {
***************
*** 164,168 ****
             $GLOBALS['phpgw']->db->query("INSERT into phpgw_ttrack_customers "
                 . "(company_name) "
!                . "VALUES ('$cname')");
             echo "$cname added to Customers List<br>";
         }
--- 164,168 ----
             $GLOBALS['phpgw']->db->query("INSERT into phpgw_ttrack_customers "
                 . "(company_name) "
!                . "VALUES 
('".$GLOBALS['phpgw']->db->db_addslashes($cname)."')",__LINE__,__FILE__);
             echo "$cname added to Customers List<br>";
         }




reply via email to

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