]> granicus.if.org Git - php/commitdiff
`len' is not the actual length of the string, but the possible maximum
authorSascha Schumann <sas@php.net>
Mon, 29 May 2000 15:07:19 +0000 (15:07 +0000)
committerSascha Schumann <sas@php.net>
Mon, 29 May 2000 15:07:19 +0000 (15:07 +0000)
length. This fixes a couple of problems, like not setting the cookie path
correctly.

ext/session/session.c

index 36907fbd66e5670e0e8f14fce2a9af60207547e8..0f0d4ae809a231ca66998b2f8ecafd6588793c7d 100644 (file)
@@ -664,7 +664,7 @@ static void _php_session_send_cookie(PSLS_D)
                strcat(cookie, PS(cookie_domain));
        }
 
-       sapi_add_header(cookie, len, 0);
+       sapi_add_header(cookie, strlen(cookie), 0);
 }
 
 static ps_module *_php_find_ps_module(char *name PSLS_DC)