mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
a pointer optim.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1031798 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -175,12 +175,11 @@ static char *get_cookie_param(request_rec *r, const char *name)
|
||||
start_cookie += strlen(name);
|
||||
while(*start_cookie && isspace(*start_cookie))
|
||||
++start_cookie;
|
||||
if (*start_cookie == '=' && start_cookie[1]) {
|
||||
if (*start_cookie++ == '=' && *start_cookie) {
|
||||
/*
|
||||
* Session cookie was found, get it's value
|
||||
*/
|
||||
char *end_cookie, *cookie;
|
||||
++start_cookie;
|
||||
cookie = apr_pstrdup(r->pool, start_cookie);
|
||||
if ((end_cookie = strchr(cookie, ';')) != NULL)
|
||||
*end_cookie = '\0';
|
||||
|
Reference in New Issue
Block a user