php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61807
Patch apache_request_headers.phpt revision 2012-05-05 06:20 UTC by remi@php.net
Patch apache_request_headers.patch revision 2012-05-05 06:19 UTC by remi@php.net
Patch php-apache-request-headers.patch revision 2012-04-22 01:12 UTC by nyt-php at countercultured dot net

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) {
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 12:01:29 2024 UTC