com php-src: Fixed bug #69849 (Broken output of apache_reques t_headers): sapi/cgi/cgi_main.c
| From: | Kalle Sommer Nielsen | Date: | Tue, 16 Jun 2015 14:11:21 +0000 |
| Subject: | com php-src: Fixed bug #69849 (Broken output of apache_reques t_headers): sapi/cgi/cgi_main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-87293@lists.php.net to get a copy of this message | ||
Commit: 444526828170b81fd771302714297ca679e15278
Author: Kalle Sommer Nielsen <kalle@php.net> Tue, 16 Jun 2015 16:11:21 +0200
Parents: ab4aae5fd7d1bb4493e8d20569ef3511eb1181fb
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=444526828170b81fd771302714297ca679e15278
Log:
Fixed bug #69849 (Broken output of apache_request_headers)
Bugs:
https://bugs.php.net/69849
Changed paths:
M sapi/cgi/cgi_main.c
Diff:
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index f66e81d..eb6ef66 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -1550,7 +1550,7 @@ static void add_request_header(char *var, unsigned int var_len, char *val,
unsig
} else {
return;
}
- add_assoc_stringl_ex(return_value, var, var_len+1, val, val_len);
+ add_assoc_stringl_ex(return_value, var, var_len, val, val_len);
if (str) {
free_alloca(var, use_heap);
}