Permalink
Browse files

Added the sanitize back.

  • Loading branch information...
1 parent 3ae83c9 commit c9501cc21bf45e249ed6c24b12cfbb6e1b1b9698 @davidfowl davidfowl committed Jun 19, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 Kudu.Core/Deployment/XmlLogger.cs
@@ -3,6 +3,7 @@
using System.IO.Abstractions;
using System.Linq;
using System.Xml.Linq;
+using Kudu.Core.Infrastructure;
namespace Kudu.Core.Deployment
{
@@ -20,6 +21,7 @@ public XmlLogger(IFileSystem fileSystem, string path)
public ILogger Log(string value, LogEntryType type)
{
+ value = XmlUtility.Sanitize(value);
var xmlLogEntry = new XElement("entry",
new XAttribute("time", DateTime.Now),
new XAttribute("id", Guid.NewGuid()),
@@ -110,6 +112,7 @@ public InnerXmlLogger(XmlLogger parent, XElement element)
public ILogger Log(string value, LogEntryType type)
{
+ value = XmlUtility.Sanitize(value);
var xmlLogEntry = new XElement("entry",
new XAttribute("time", DateTime.Now),
new XAttribute("id", Guid.NewGuid()),

0 comments on commit c9501cc

Please sign in to comment.