Projects ⇒ Bugs ⇒ #533: Too few newlines in viewtopic when bbcode off ⇒ CPG Dragonfly™ CMS
Bug #533 Too few newlines in viewtopic when bbcode off
Project: Dragonfly 9.0.3 -> 9.3 Category: Output Control
Submitted: Wednesday, June 01, 2005 (14:15:56) Modified: Wednesday, June 22, 2005 (01:52:22)
Status: Closed Assigned to:
PHP Version: 4.3.10 HTTPD Server: Apache 2.0

View/Vote Add Comment

by: Brennor
Description:
------------
This is the inverse of Bug 532.

If bbcode is disabled, newlines aren't converted to <br />s. Fix is to use the same code as the referenced bug so that nl2br is called when bbcode isn't allowed. Bbcode is decoded before this line insertion, so nl2br is called in both code paths.

Insert at line 958 of
html/modules/Forums/viewtopic.php (rev 9.15):

if (!$board_config['allow_bbcode']) {
$message = nl2br($message);
}
by: DJMaze
This bug has been fixed in the CVS.

Snapshots of the sources are packaged every 6 hours; this change
will be in the next snapshot. You can grab the snapshot at the
Downloads section.

Thank you for the report, and for helping us to make CPG-Nuke 9.0.3 -> 9.1 better.
User Info

Welcome Anonymous



(Register)
Community

Support for DragonflyCMS in a other languages:

Deutsch
Español