From: Sterling Hughes Date: Mon, 28 Oct 2002 20:16:24 +0000 (+0000) Subject: fix bug # 17497 X-Git-Tag: php-4.3.0RC1~481 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4ba703577b28802beb735b1422f5519ad2b9c1b9;p=php fix bug # 17497 (fix by: ddb@bitxtender.de) --- diff --git a/ext/mssql/php_mssql.c b/ext/mssql/php_mssql.c index f6ff192d12..f538ca02b8 100644 --- a/ext/mssql/php_mssql.c +++ b/ext/mssql/php_mssql.c @@ -1219,7 +1219,7 @@ static void php_mssql_fetch_hash(INTERNAL_FUNCTION_PARAMETERS, int result_type) 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