Loading...
 
Skip to main content

Development


Chat bugfix

Since I can't figure out how to contribute a bug fix the right way, I'll post it here. Maybe someone can explain how to properly submit bug fixes.

Problem: In the chat module, any post that contains the ' character (apostrophe) will not display.

Fix: in approximately line 60 of the file tiki-chat_loader.php, change the line:

$parsed = $tikilib->parse_comment_data%22data%22" class="wiki wikinew text-danger tips htmlspecialchars">$msg%22data%22;

to:

$parsed = $tikilib->parse_comment_data%22data%22" class="wiki wikinew text-danger tips htmlspecialchars">str_replace("'", "\'", $msg%22data%22);


This replaces the ' character with \' prior to printing it, which fixes the bug.

Jake

Hi!

The best is to get CVS access and to commit this fix directly to the source code.

Otherwise, you can provide a bug report & fix (patch) on dev.tikiwiki.org

Thanks!

M 😉


What is CVS access, and how do I get it.