diff options
author | George Wang <gwang@php.net> | 2014-07-11 14:31:59 -0400 |
---|---|---|
committer | George Wang <gwang@php.net> | 2014-07-11 14:31:59 -0400 |
commit | 0baaf9fade6f4ef1b2da824cac76bb78ff798611 (patch) | |
tree | 11edb575c2591d2068e923231346661faaeb439b | |
parent | ae313b60370a1916c4f86860c19d62144beae89d (diff) | |
download | php-git-0baaf9fade6f4ef1b2da824cac76bb78ff798611.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.c | 1 |
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; |