Skip to content

Commit

Permalink
DNN-18204: refactoring code.
Browse files Browse the repository at this point in the history
  • Loading branch information
zyhfish authored and tpluscode committed Mar 21, 2018
1 parent 0d904cc commit 230f949
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions DNN Platform/Library/Entities/Portals/PortalInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -812,12 +812,7 @@ public void Fill(IDataReader dr)
? p
: Security.FIPSCompliant.DecryptAES(p, Config.GetDecryptionkey(), Host.Host.GUID);
}
catch (FormatException)
{
// for backward compatibility
ProcessorPassword = p;
}
catch(CryptographicException)
catch (Exception ex) when (ex is FormatException || ex is CryptographicException)
{
// for backward compatibility
ProcessorPassword = p;
Expand Down

0 comments on commit 230f949

Please sign in to comment.