cvs: php4 /ext/session/ session.c

[email protected] ("Sascha Schumann")
Newsgroups php.version4
Message-ID <cvssas959612839@cvsserver>
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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.