Closed Bug 841790 Opened 11 years ago Closed 11 years ago

Fix newlines in &debug=1 output

Categories

(Tree Management Graveyard :: TBPL, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

References

Details

Attachments

(1 file)

When using &debug=1, eg:
https://tbpl.mozilla.org/php/getLogExcerpt.php?type=annotated&regenerate=1&id=19774648&debug=1

...the log output displays all on one line.

We either need to add <br /> between each log line, or else even better, make the mime-type "text/plain" so the browser displays it as is, and doesn't mangle it.
Attached patch Patch v1Splinter Review
I know how much you love php... ;-)
Attachment #714446 - Flags: review?(jhammel)
Comment on attachment 714446 [details] [diff] [review]
Patch v1

I dunno...looks too straight forward to be a PHP patch :P  Though I guess the fact that its a double check vs e.g. python _GET.get('debug') == '1' is good enough.

Good find, Ed.   I didn't even know about that URL
Attachment #714446 - Flags: review?(jhammel) → review+
Depends on: 842328
In production.
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Webtools → Tree Management
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: