Skip to content

Commit

Permalink
Fix fxcop issue
Browse files Browse the repository at this point in the history
  • Loading branch information
joelverhagen committed Jul 14, 2020
1 parent 2ad5479 commit 817ea03
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ public class GalleryMachineKeyConfigurationProvider : ProtectedConfigurationProv
public override XmlNode Decrypt(XmlNode encryptedNode)
{
var xmlDoc = new XmlDocument();
xmlDoc.LoadXml("<machineKey />");
xmlDoc.XmlResolver = null;
xmlDoc.AppendChild(xmlDoc.CreateElement(string.Empty, "machineKey", string.Empty));

// The machine keys are used for encrypting/decrypting cookies used by ASP.NET, these are usually set by IIS in 'Auto' mode.
// During a deployment to Azure cloud service the same machine key values are set on all the instances of a given cloud service,
Expand Down

0 comments on commit 817ea03

Please sign in to comment.