stas Fri Jun 15 22:42:43 2007 UTC Modified files: /php-src/ext/session session.c Log: MF5: Disallow characters that Cookie RFC does not allow in unquoted cookies http://cvs.php.net/viewvc.cgi/php-src/ext/session/session.c?r1=1.471&r2=1.472&diff_format=u Index: php-src/ext/session/session.c diff -u php-src/ext/session/session.c:1.471 php-src/ext/session/session.c:1.472 --- php-src/ext/session/session.c:1.471 Thu Jun 7 08:58:38 2007 +++ php-src/ext/session/session.c Fri Jun 15 22:42:43 2007 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: session.c,v 1.471 2007/06/07 08:58:38 tony2001 Exp $ */ +/* $Id: session.c,v 1.472 2007/06/15 22:42:43 stas Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -398,7 +398,7 @@ int vallen; /* check session name for invalid characters */ - if (PS(id) && strpbrk(PS(id), "\r\n\t <>'\"\\")) { + if (PS(id) && strpbrk(PS(id), "\r\n\t <>'\"\\()@,;:[]?={}&%")) { efree(PS(id)); PS(id) = NULL; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php