cvs: php4 /ext/session/ session.c
| From: | Sascha Schumann | Date: | Mon, 29 May 2000 15:07:19 +0000 |
| Subject: | cvs: php4 /ext/session/ session.c | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-15897@lists.php.net to get a copy of this message | ||
sas Mon May 29 08:07:19 2000 EDT
Modified files:
/php4/ext/session session.c
Log:
`len' is not the actual length of the string, but the possible maximum
length. This fixes a couple of problems, like not setting the cookie path
correctly.
Index: php4/ext/session/session.c
diff -u php4/ext/session/session.c:1.141 php4/ext/session/session.c:1.142
--- php4/ext/session/session.c:1.141 Fri May 26 06:02:11 2000
+++ php4/ext/session/session.c Mon May 29 08:07:19 2000
@@ -664,7 +664,7 @@
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)