Using 7.x-1.x branch, I had to fix a syntax error in chatroom.php, the || is in the wrong place.
Index: chatblock.php
===================================================================
--- chatblock.php (revision 5778)
+++ chatblock.php (working copy)
@@ -38,8 +38,8 @@ if (
* manipulated.
*/
+ preg_match('#(^[\\/]|\.+[\\/]*|:|[\\/]{2,})#', $_POST['mp'])
||
- preg_match('#(^[\\/]|\.+[\\/]*|:|[\\/]{2,})#', $_POST['mp'])
// Overflow protection.
Even with the fix, the javascript is broken. I get the same message over and over in the console "TypeError: data is null" at if (data.ok), line 233.
When a user types their own message, they see it. No-one else does until they refresh the page.
Comments
Comment #1
Dave Cohen commentedTurns out, that preg_match returns true, and that makes chatblock.php fail. I have no idea what that preg_match is trying to accomplish, I had to comment it out.
Comment #2
doitDave commentedpreg_match in that line wants to avoid path requests with some problematic patterns. Can you provide the path from your network log that fails with this logic? I would rather analyze them instead of disabling this check. Thx
Comment #3
Dave Cohen commentedThat was a long time ago. Not sure how I reproduced it. I think I gave up on chatblock.
Comment #4
doitDave commentedOK, no problem. Thanks anyway for you concern :)