From: Lo?c C. <lo...@us...> - 2001-04-03 11:07:49
|
Update of /cvsroot/phpmychat/phpMyChat - 0.14/chat In directory usw-pr-cvs1:/tmp/cvs-serv16471 Modified Files: loader.php3 Log Message: Fix a bug if the username contains a single quote ***** Bogus filespec: - ***** Bogus filespec: 0.14/chat Index: loader.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat - 0.14/chat/loader.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** loader.php3 2001/04/02 17:57:44 1.4 --- loader.php3 2001/04/03 11:07:44 1.5 *************** *** 279,287 **** { // doubles backslashes except the ones for closing HTML tags ! $ToSend = ereg_replace("([^<]+)[\]","\\1\\\\",$Messages[$message_nb-1-$i]); // slashes the quotes that should be displayed ! $ToSend = str_replace("\"","\\\"",$ToSend); ?> ! window.parent.frames['messages'].window.document.write("<?php echo($ToSend); ?>\n"); <?php }; --- 279,288 ---- { // doubles backslashes except the ones for closing HTML tags ! $toPush = str_replace('\\', '\\\\', $Messages[$message_nb - 1 - $i]); ! $toPush = str_replace('<\\\\/', '<\\/', $toPush); // slashes the quotes that should be displayed ! $toPush = str_replace("\"","\\\"",$toPush); ?> ! window.parent.frames['messages'].window.document.write("<?php echo($toPush); ?>\n"); <?php }; |