summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Wang <gwang@php.net>2014-07-11 14:31:59 -0400
committerGeorge Wang <gwang@php.net>2014-07-11 15:00:36 -0400
commit2d7625a1b8e354efeb919a25b0e01636116d7f79 (patch)
tree2c59bbe99ffcf34ee8fc01fcca8b8e8ea50057e3
parentcf23a2efc50e32ec1d6751e5f77fab5c561fe20c (diff)
downloadphp-git-2d7625a1b8e354efeb919a25b0e01636116d7f79.tar.gz
Fixed a bug that cannot access custom request header stored in apache_request_headers() though array index.
-rw-r--r--sapi/litespeed/lsapilib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sapi/litespeed/lsapilib.c b/sapi/litespeed/lsapilib.c
index 9c1b73660e..1df2326ffe 100644
--- a/sapi/litespeed/lsapilib.c
+++ b/sapi/litespeed/lsapilib.c
@@ -2129,6 +2129,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;