stas Wed May 16 01:34:14 2007 UTC Modified files: (Branch: PHP_4_4) /php-src/ext/session session.c Log: do not send cookie when session is passed in URL, same as it happens with GET/POST http://cvs.php.net/viewvc.cgi/php-src/ext/session/session.c?r1=1.336.2.53.2.17&r2=1.336.2.53.2.18&diff_format=u Index: php-src/ext/session/session.c diff -u php-src/ext/session/session.c:1.336.2.53.2.17 php-src/ext/session/session.c:1.336.2.53.2.18 --- php-src/ext/session/session.c:1.336.2.53.2.17 Wed Apr 4 19:52:26 2007 +++ php-src/ext/session/session.c Wed May 16 01:34:14 2007 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: session.c,v 1.336.2.53.2.17 2007/04/04 19:52:26 tony2001 Exp $ */ +/* $Id: session.c,v 1.336.2.53.2.18 2007/05/16 01:34:14 stas Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1120,8 +1120,10 @@ char *q; p += lensess + 1; - if ((q = strpbrk(p, "/?\\"))) + if ((q = strpbrk(p, "/?\\"))) { PS(id) = estrndup(p, q - p); + PS(send_cookie) = 0; + } } /* check whether the current request was referred to by
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php