phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: sitemgr/inc class.Content_SO.inc.php,1.5,1.6


From: Michael Totschnig <address@hidden>
Subject: [Phpgroupware-cvs] CVS: sitemgr/inc class.Content_SO.inc.php,1.5,1.6
Date: Mon, 10 Mar 2003 02:00:49 -0500

Update of /cvsroot/phpgroupware/sitemgr/inc
In directory subversions:/tmp/cvs-serv20414

Modified Files:
        class.Content_SO.inc.php 
Log Message:
do not call remove_magic_quotes if data is not set


Index: class.Content_SO.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/sitemgr/inc/class.Content_SO.inc.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** class.Content_SO.inc.php    4 Mar 2003 17:26:43 -0000       1.5
--- class.Content_SO.inc.php    10 Mar 2003 07:00:41 -0000      1.6
***************
*** 218,222 ****
                {
                        //this is necessary because double slashed data breaks 
while serialized
!                       $this->remove_magic_quotes($data);
                        $s = $this->db->db_addslashes(serialize($data));
                        $sql = "UPDATE phpgw_sitemgr_content SET arguments = 
'$s', sort_order = " . (int)$block->sort_order . 
--- 218,225 ----
                {
                        //this is necessary because double slashed data breaks 
while serialized
!                       if (isset($data))
!                       {
!                               $this->remove_magic_quotes($data);
!                       }
                        $s = $this->db->db_addslashes(serialize($data));
                        $sql = "UPDATE phpgw_sitemgr_content SET arguments = 
'$s', sort_order = " . (int)$block->sort_order . 
***************
*** 228,232 ****
                {
                        //this is necessary because double slashed data breaks 
while serialized
!                       $this->remove_magic_quotes($data);
                        $s = $this->db->db_addslashes(serialize($data));
                        $title = $this->db->db_addslashes($block->title);
--- 231,238 ----
                {
                        //this is necessary because double slashed data breaks 
while serialized
!                       if (isset($data))
!                       {
!                               $this->remove_magic_quotes($data);
!                       }
                        $s = $this->db->db_addslashes(serialize($data));
                        $title = $this->db->db_addslashes($block->title);





reply via email to

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