tiki-read-artile.php seems to parse code paragraph twice.
I observed that articles parsing worked properly in the preview and in the printable version of an article, but not in the "read" mode.
I edited the "read" and "print" file and "echo"-ed a debug comment in which I tried to display the article body data before parsing:
echo "<!-- " . $body . " -->"; // The line I've added $smarty->assign('parse_body', $tikilib->parse_data($body));
echo "<!-- " . $body . " -->"; // The line I've added $smarty->assign('parse_body', $tikilib->parse_data($body));
When I call the "read" one, some things in $body are already parsed.
So when the code calls $tikilib->parse_data($body), the code is parsed a second time.
I found the problem when I was trying to display a BASH code with -- parameters
To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.
filename | created | hits | comment | version | filetype | ||
---|---|---|---|---|---|---|---|
No attachments for this item |