mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02:00
Fixed a bug that cannot access custom request header stored in apache_request_headers() though array index.
This commit is contained in:
parent
ae313b6037
commit
0baaf9fade
1 changed files with 1 additions and 0 deletions
|
@ -1945,6 +1945,7 @@ int LSAPI_ForeachOrgHeader_r( LSAPI_Request * pReq,
|
||||||
{
|
{
|
||||||
pKey = pReq->m_pHttpHeader + pCur->nameOff;
|
pKey = pReq->m_pHttpHeader + pCur->nameOff;
|
||||||
keyLen = pCur->nameLen;
|
keyLen = pCur->nameLen;
|
||||||
|
*(pKey + keyLen ) = 0;
|
||||||
|
|
||||||
pValue = pReq->m_pHttpHeader + pCur->valueOff;
|
pValue = pReq->m_pHttpHeader + pCur->valueOff;
|
||||||
*(pValue + pCur->valueLen ) = 0;
|
*(pValue + pCur->valueLen ) = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue