com php-src: Fixed a bug that cannot access custom request header stored in apache_request_headers() though array index.: sapi/litespeed/lsapilib.c
| From: | George Wang | Date: | Fri, 11 Jul 2014 18:37:28 +0000 |
| Subject: | com php-src: Fixed a bug that cannot access custom request header stored in apache_request_headers() though array index.: sapi/litespeed/lsapilib.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-79423@lists.php.net to get a copy of this message | ||
Commit: 5c4ae622bef00ad443e67d3974e35467bf6808ef
Author: George Wang <gwang@php.net> Fri, 11 Jul 2014 14:31:59 -0400
Parents: 5c7daa07b93a3f880b3aeb557ab06ecb3a7e6e53
Branches: PHP-5.4.31
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5c4ae622bef00ad443e67d3974e35467bf6808ef
Log:
Fixed a bug that cannot access custom request header stored in apache_request_headers() though array
index.
Changed paths:
M sapi/litespeed/lsapilib.c
Diff:
diff --git a/sapi/litespeed/lsapilib.c b/sapi/litespeed/lsapilib.c
index 92c169f..786a3bd 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;