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:38:01 +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-79425@lists.php.net to get a copy of this message | ||
Commit: a033dfb4dd2c4c590df012cb7dbe858f398b6fce
Author: George Wang <gwang@php.net> Fri, 11 Jul 2014 14:31:59 -0400
Parents: 21ad243216b9faba460e82581fe812035499b8dd
Branches: PHP-5.5.15
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=a033dfb4dd2c4c590df012cb7dbe858f398b6fce
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;