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 14:37:39 -0400
commit9f721967a329387bf73c0d5bebe9578ba772601e (patch)
treed476c47bd100d840c9acb822c57e9870cd4410bb
parent40d11cc822f7f5e3620ba03351a7f8053960bcd0 (diff)
downloadphp-git-9f721967a329387bf73c0d5bebe9578ba772601e.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 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;