pollita Sat Sep 6 01:41:37 2003 EDT Modified files: /php-src/ext/standard http.c Log: Prevent Recursion Index: php-src/ext/standard/http.c diff -u php-src/ext/standard/http.c:1.1 php-src/ext/standard/http.c:1.2 --- php-src/ext/standard/http.c:1.1 Fri Sep 5 20:35:21 2003 +++ php-src/ext/standard/http.c Sat Sep 6 01:41:36 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: http.c,v 1.1 2003/09/06 00:35:21 pollita Exp $ */ +/* $Id: http.c,v 1.2 2003/09/06 05:41:36 pollita Exp $ */ #include "http.h" #include "php_ini.h" @@ -39,6 +39,11 @@ return FAILURE; } + if (ht->nApplyCount > 0) { + /* Prevent Recuriosn */ + return SUCCESS; + } + arg_sep = INI_STR("arg_separator.output"); if (!arg_sep || !strlen(arg_sep)) { arg_sep = URL_DEFAULT_ARG_SEP; @@ -106,7 +111,9 @@ *(p++) = '['; *p = '\0'; } + ht->nApplyCount++; php_url_encode_hash_ex(Z_ARRVAL_PP(zdata), formstr, NULL, 0, newprefix, newprefix_len, "]", 1 TSRMLS_CC); + ht->nApplyCount--; efree(newprefix); } else { if (formstr->len) {
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php