diff options
author | George Wang <gwang@php.net> | 2014-07-11 14:31:59 -0400 |
---|---|---|
committer | George Wang <gwang@php.net> | 2014-07-11 15:00:36 -0400 |
commit | 2d7625a1b8e354efeb919a25b0e01636116d7f79 (patch) | |
tree | 2c59bbe99ffcf34ee8fc01fcca8b8e8ea50057e3 | |
parent | cf23a2efc50e32ec1d6751e5f77fab5c561fe20c (diff) | |
download | php-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.c | 1 |
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; |