From: George Wang Date: Fri, 11 Jul 2014 18:31:59 +0000 (-0400) Subject: Fixed a bug that cannot access custom request header stored in apache_request_headers... X-Git-Tag: php-5.4.32RC1~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0baaf9fade6f4ef1b2da824cac76bb78ff798611;p=php Fixed a bug that cannot access custom request header stored in apache_request_headers() though array index. --- diff --git a/sapi/litespeed/lsapilib.c b/sapi/litespeed/lsapilib.c index 92c169f4f5..786a3bd20b 100644 --- a/sapi/litespeed/lsapilib.c +++ b/sapi/litespeed/lsapilib.c @@ -1945,6 +1945,7 @@ int LSAPI_ForeachOrgHeader_r( LSAPI_Request * pReq, { pKey = pReq->m_pHttpHeader + pCur->nameOff; keyLen = pCur->nameLen; + *(pKey + keyLen ) = 0; pValue = pReq->m_pHttpHeader + pCur->valueOff; *(pValue + pCur->valueLen ) = 0;