PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Logging » Log » Bug #2606

Please add nl2br() to Log_Display->log()

Details

Request #2606Please add nl2br() to Log_Display->log()
Submitted2004-10-24 21:41 UTC
Fromroehr at zilleon dot com
Assignedjon
StatusClosed
PackageLog
PHP VersionIrrelevant
OSirrelevant
Roadmaps(Not assigned)

Comments

[2004-10-24 21:41 UTC] roehr at zilleon dot com

Description:
------------
Hi,

please add nl2br() to the log() method of the display handler so that line breaks will be represented as <br>s on screen.

Maybe the messages could also be printed out as an unordered list - on demand as an option in the config array?

Thank you very much for the great package!

Regards, Torsten Roehr

Reproduce code:
---------------
Log/display.php line 98 from:
htmlspecialchars($message) .

to:
nl2br(htmlspecialchars($message)) .