Bug #52162 [Asn->Csd]: for NSAPI module, custom request header variables with numbers are removed
| From: | thetaphi@php.net | Date: | Mon, 29 Jun 2015 09:05:47 +0000 |
| Subject: | Bug #52162 [Asn->Csd]: for NSAPI module, custom request header variables with numbers are removed | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-193983@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=52162&edit=1
ID: 52162
Updated by: thetaphi@php.net
Reported by: srinatar@php.net
Summary: for NSAPI module, custom request header variables
with numbers are removed
-Status: Assigned
+Status: Closed
Type: Bug
Package: iPlanet related
Operating System: Linux
PHP Version: 5.3.2
Assigned To: thetaphi
Block user comment: N
Private report: N
New Comment:
The fix for this bug has been committed.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
This was already fixed. The remaining change will not be done anymore, as the NSAPI module was
retired for PHP 7.
Previous Comments:
------------------------------------------------------------------------
[2010-06-23 21:41:29] thetaphi@php.net
From the CGI/1.1 spec in RFC3875:
Meta-variables with names beginning with "HTTP_" contain values read
from the client request header fields, if the protocol used is HTTP.
The HTTP header field name is converted to upper case, has all
occurrences of "-" replaced with "_" and has "HTTP_" prepended to
give the meta-variable name. The header data can be presented as
sent by the client, or can be rewritten in ways which do not change
its semantics. If multiple header fields with the same field-name
are received then the server MUST rewrite them as a single value
having the same semantics. Similarly, a header field that spans
multiple lines MUST be merged onto a single line. The server MUST,
if necessary, change the representation of the data (for example,
the character set) to be appropriate for a CGI meta-variable.
So I tend to remove the check explicitely and only specifically handle the "-" character
as described in the specs.
------------------------------------------------------------------------
[2010-06-23 21:06:35] srinatar@php.net
Automatic comment from SVN on behalf of srinatar
Revision: http://svn.php.net/viewvc/?view=revision&revision=300707
Log: - Fixed bug #52162 (custom request header variables with numbers are removed)
------------------------------------------------------------------------
[2010-06-23 20:30:00] thetaphi@php.net
I think this problem also affects other SAPIs that parse headers to ENV-style variables? I will scan
other sapis and fix their code, too, if needed.
------------------------------------------------------------------------
[2010-06-23 20:28:47] thetaphi@php.net
I will fix that! Thanks for reporting. Uwe
------------------------------------------------------------------------
[2010-06-23 20:06:12] srinatar@php.net
mark the bug as specific to a given SAPI only.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=52162
--
Edit this bug report at https://bugs.php.net/bug.php?id=52162&edit=1