#177 Chat - problem with '

open
nobody
None
6
2007-10-31
2005-09-13
jake59
No

Chat rooms will not display any message that contains a
' character, (unless the ' happens to be preceded with /)

To fix this problem, change the following line in
tiki-chat_loader.php:

$parsed =
$tikilib->parse_comment_data(htmlspecialchars($msg["data"]));

to:

$parsed =
$tikilib->parse_comment_data(htmlspecialchars(str_replace("'",
"\'", $msg["data"])));

This adds the \ before each occurance of ' which
causes the comments to display properly.

Discussion

  • Marc Laporte
    Marc Laporte
    2007-10-31

    Logged In: YES
    user_id=484395
    Originator: NO

    This is a great enhancement. Can you update it for the latest version and commit directly to TikiWiki?

    Thanks!

    M ;-)

     
  • Marc Laporte
    Marc Laporte
    2007-10-31

    • priority: 5 --> 6