Patch php-apache-request-headers.patch for CGI/CLI related Bug #61807
Patch version 2012-04-22 01:12 UTC
Return to Bug #61807 |
Download this patch
Patch Revisions:
Developer: nyt-php@countercultured.net
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c
index 4643882..ef876fb 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -1614,7 +1614,9 @@ PHP_FUNCTION(apache_request_headers) /* {{{ */
var = q = t;
*q++ = *p++;
while (*p) {
- if (*p == '_') {
+ if (*p == '=') {
+ break;
+ } else if (*p == '_') {
*q++ = '-';
p++;
if (*p) {
|