phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] phpgwapi/setup tables_update.inc.php,1.82


From: fipsfuchs
Subject: [Phpgroupware-cvs] phpgwapi/setup tables_update.inc.php,1.82
Date: Mon, 2 May 2005 18:38:00 +0200

Update of phpgwapi/setup

Modified Files:
     Branch: MAIN
            tables_update.inc.php lines: +5 -5

Log Message:
patch 3489
db_addslashes added

====================================================
Index: phpgwapi/setup/tables_update.inc.php
diff -u phpgwapi/setup/tables_update.inc.php:1.81 
phpgwapi/setup/tables_update.inc.php:1.82
--- phpgwapi/setup/tables_update.inc.php:1.81   Thu Apr 28 08:11:59 2005
+++ phpgwapi/setup/tables_update.inc.php        Mon May  2 16:38:57 2005
@@ -687,11 +687,11 @@
                                {
                                        if (!empty($app) && count($pref))
                                        {
-                                               $app = addslashes($app);
+                                               $app = 
$db2->db_addslashes($app);
                                                $pref = serialize($pref);
-                                               $db2->query("INSERT INTO 
phpgw_preferences".
-                                                       " 
(preference_owner,preference_app,preference_value)".
-                                                       " VALUES 
($owner,'$app','$pref')");
+                                               $db2->query('INSERT INTO 
phpgw_preferences '
+                                               . 
'(preference_owner,preference_app,preference_value) '
+                                               . "VALUES 
($owner,'$app','$pref')");
                                        }
                                }
                        }






reply via email to

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