cvs: pecl /http http_functions.c
| From: | Michael Wallner | Date: | Thu, 24 Mar 2005 16:57:51 +0000 |
| Subject: | cvs: pecl /http http_functions.c | ||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-2902@lists.php.net to get a copy of this message | ||
mike Thu Mar 24 11:57:51 2005 EDT
Modified files:
/pecl/http http_functions.c
Log:
* check initial length of arg_separator
http://cvs.php.net/diff.php/pecl/http/http_functions.c?r1=1.16&r2=1.17&ty=u
Index: pecl/http/http_functions.c
diff -u pecl/http/http_functions.c:1.16 pecl/http/http_functions.c:1.17
--- pecl/http/http_functions.c:1.16 Thu Mar 24 11:30:56 2005
+++ pecl/http/http_functions.c Thu Mar 24 11:57:50 2005
@@ -13,7 +13,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: http_functions.c,v 1.16 2005/03/24 16:30:56 mike Exp $ */
+/* $Id: http_functions.c,v 1.17 2005/03/24 16:57:50 mike Exp $ */
#ifdef HAVE_CONFIG_H
# include "config.h"
@@ -957,8 +957,8 @@
PHP_FUNCTION(http_build_query)
{
zval *formdata;
- int prefix_len = 0, arg_sep_len = 0;
char *prefix = NULL, *arg_sep = INI_STR("arg_separator.output");
+ int prefix_len = 0, arg_sep_len = strlen(arg_sep);
phpstr *formstr = phpstr_new();
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|ss", &formdata, &prefix,
&prefix_len, &arg_sep, &arg_sep_len) != SUCCESS) {