Date: 04/28/98
- Next message: Bug Database: "[PHP-DEV] Bug #309 Updated: Backslashes"
- Previous message: Bug Database: "[PHP-DEV] Bug #262 Updated: dbminsert() failure / db.c flaws"
- Next in thread: rasmus: "[PHP-DEV] CVS update: php3/functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tuesday April 28, 1998 @ 22:18
Author: jim
Update of /repository/php3/functions
In directory asf:/tmp/cvs-serv2906/functions
Modified Files:
db.c
Log Message:
Only strip slashes when magic_quotes_runtime is on. (Do we even want to do it then?)
Index: php3/functions/db.c
diff -c php3/functions/db.c:1.61 php3/functions/db.c:1.62
*** php3/functions/db.c:1.61 Tue Apr 28 22:11:45 1998
--- php3/functions/db.c Tue Apr 28 22:18:16 1998
***************
*** 28,34 ****
+----------------------------------------------------------------------+
*/
! /* $Id: db.c,v 1.61 1998/04/29 02:11:45 jim Exp $ */
#if COMPILE_DL
#include "dl/phpdl.h"
#endif
--- 28,34 ----
+----------------------------------------------------------------------+
*/
! /* $Id: db.c,v 1.62 1998/04/29 02:18:16 jim Exp $ */
#if COMPILE_DL
#include "dl/phpdl.h"
#endif
***************
*** 537,544 ****
int ret;
datum key_datum, value_datum;
! _php3_stripslashes(key,NULL);
! _php3_stripslashes(value,NULL);
value_datum.dptr = estrdup(value);
value_datum.dsize = strlen(value);
--- 537,546 ----
int ret;
datum key_datum, value_datum;
! if (php3_ini.magic_quotes_runtime) {
! _php3_stripslashes(key,NULL);
! _php3_stripslashes(value,NULL);
! }
value_datum.dptr = estrdup(value);
value_datum.dsize = strlen(value);
- Next message: Bug Database: "[PHP-DEV] Bug #309 Updated: Backslashes"
- Previous message: Bug Database: "[PHP-DEV] Bug #262 Updated: dbminsert() failure / db.c flaws"
- Next in thread: rasmus: "[PHP-DEV] CVS update: php3/functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

