Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added the sanitize back.

  • Loading branch information...
commit c9501cc21bf45e249ed6c24b12cfbb6e1b1b9698 1 parent 3ae83c9
@davidfowl davidfowl authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  Kudu.Core/Deployment/XmlLogger.cs
View
3  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.
Something went wrong with that request. Please try again.