r107813 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107812‎ | r107813 | r107814 >
Date:10:40, 2 January 2012
Author:petrb
Status:deferred
Tags:
Comment:
fixed some more output and html
Modified paths:
  • /trunk/tools/wmib/DumpHtm.cs (modified) (history)
  • /trunk/tools/wmib/RClogs.cs (modified) (history)

Diff [purge]

Index: trunk/tools/wmib/DumpHtm.cs
@@ -77,7 +77,7 @@
7878 /// </summary>
7979 /// <param name="text"></param>
8080 /// <returns></returns>
81 - public string Encode(string text)
 81+ public static string Encode(string text)
8282 {
8383 text = text.Replace("<", "&lt;");
8484 text = text.Replace(">", "&gt;");
Index: trunk/tools/wmib/RClogs.cs
@@ -93,13 +93,13 @@
9494
9595 public string ToTable()
9696 {
97 - string output = "<table>";
 97+ string output = "<table align=\"left\" border=1>\n";
9898 try
9999 {
100100 writable = false;
101101 foreach (IWatch b in pages)
102102 {
103 - output = output + "<tr><td>" + b.Channel + "</td><td>" + b.Page + "</td></tr>\n";
 103+ output = output + "<tr><td>" + b.Channel + "</td><td>" + HtmlDump.Encode(b.Page) + "</td></tr>\n";
104104 }
105105 output = output + "</table>";
106106 writable = true;

Status & tagging log