Skip to content

Commit

Permalink
DNN-18204: catch CryptographicException as well for backward compabil…
Browse files Browse the repository at this point in the history
…ity.
  • Loading branch information
zyhfish authored and tpluscode committed Mar 21, 2018
1 parent cf6942b commit 0d904cc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion DNN Platform/Library/Entities/Portals/PortalInfo.cs
Original file line number Diff line number Diff line change
@@ -22,6 +22,7 @@

using System;
using System.Data;
using System.Security.Cryptography;
using System.Xml.Serialization;

using DotNetNuke.Common;
@@ -811,7 +812,12 @@ public void Fill(IDataReader dr)
? p
: Security.FIPSCompliant.DecryptAES(p, Config.GetDecryptionkey(), Host.Host.GUID);
}
catch(FormatException)
catch (FormatException)
{
// for backward compatibility
ProcessorPassword = p;
}
catch(CryptographicException)
{
// for backward compatibility
ProcessorPassword = p;

0 comments on commit 0d904cc

Please sign in to comment.