From: Lo?c C. <lo...@us...> - 2001-05-16 20:56:27
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat/lib In directory usw-pr-cvs1:/tmp/cvs-serv4783/chat/lib Modified Files: db_sessions.lib.php3 Log Message: Fix a bug when data contains backslashes Index: db_sessions.lib.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/lib/db_sessions.lib.php3,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -r1.11 -r1.12 *** db_sessions.lib.php3 2001/04/20 21:17:09 1.11 --- db_sessions.lib.php3 2001/05/16 20:56:24 1.12 *************** *** 690,694 **** } ! $serialized = str_replace('\'', '\\\'', serialize($GLOBALS['dbSessionVars'])); // Ensure the session data do not exceed the allowed size --- 690,695 ---- } ! $serialized = serialize($GLOBALS['dbSessionVars']); ! $serialized = str_replace('\'', '\\\'', str_replace('\\', '\\\\', $serialized)); // Ensure the session data do not exceed the allowed size |