sterling                Mon Oct 28 15:16:25 2002 EDT

  Modified files:              
    /php4/ext/mssql     php_mssql.c 
  Log:
  fix bug # 17497
  (fix by: [EMAIL PROTECTED])
  
  
Index: php4/ext/mssql/php_mssql.c
diff -u php4/ext/mssql/php_mssql.c:1.85 php4/ext/mssql/php_mssql.c:1.86
--- php4/ext/mssql/php_mssql.c:1.85     Wed Jun 26 04:32:25 2002
+++ php4/ext/mssql/php_mssql.c  Mon Oct 28 15:16:24 2002
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_mssql.c,v 1.85 2002/06/26 08:32:25 derick Exp $ */
+/* $Id: php_mssql.c,v 1.86 2002/10/28 20:16:24 sterling Exp $ */
 
 #ifdef COMPILE_DL_MSSQL
 #define HAVE_MSSQL 1
@@ -1219,7 +1219,7 @@
 
                        if (Z_TYPE(result->data[result->cur_row][i]) == IS_STRING) {
                                if (PG(magic_quotes_runtime)) {
-                                       data = 
php_addslashes(Z_STRVAL(result->data[result->cur_row][i]), 
Z_STRLEN(result->data[result->cur_row][i]), 
&Z_STRLEN(result->data[result->cur_row][i]), 1 TSRMLS_CC);
+                                       data = 
+php_addslashes(Z_STRVAL(result->data[result->cur_row][i]), 
+Z_STRLEN(result->data[result->cur_row][i]), &data_len, 0 TSRMLS_CC);
                                        should_copy = 0;
                                }
                                else



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to