[Mono-bugs] [Bug 59431][Maj] Changed - MONO Beta 2 Bug: Not HtmlEncoding Trace Output

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 2 Jun 2004 05:46:19 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by davidandrewtaylor@hotmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=59431

--- shadow/59431	2004-06-02 01:30:40.000000000 -0400
+++ shadow/59431.tmp.7437	2004-06-02 05:46:19.000000000 -0400
@@ -39,6 +39,18 @@
 
 Additional Information:
 This needs to be fixed so invalid HTML pages are not generated.
 
 ------- Additional Comments From gonzalo@ximian.com  2004-06-02 01:30 -------
 Please don't add people to the CC list unless they let you do it.
+
+------- Additional Comments From davidandrewtaylor@hotmail.com  2004-06-02 05:46 -------
+I should add that .NET does a few nice things when viewing the trace 
+in a web page.  As well as HTML Encoding the output, it also 
+substitutes CR "/n" for "<BR>" plus a series of spaces to &nbsp;, 
+such that:
+"    " would be replaced with " &nbsp;&nbsp;&nbsp;"
+
+I think as a minimum MONO needs to HTML Encode the trace otherwise 
+you might be returning invalid HTML to a web browser when tracing is 
+enabled.  But it would also be nice to do the "\n"->"<BR>" and 
+the " "->"&nbsp;" conversions.