From fdc47e4a385387cafd96d2de36a93ec55d1b34cf Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Fri, 3 Mar 2023 20:18:09 +0900 Subject: [PATCH] Avoid crash when some plugins are installed (#4725) --- BTCPayServer/Filters/XFrameOptionsAttribute.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BTCPayServer/Filters/XFrameOptionsAttribute.cs b/BTCPayServer/Filters/XFrameOptionsAttribute.cs index e9c7442c6..959cb5eed 100644 --- a/BTCPayServer/Filters/XFrameOptionsAttribute.cs +++ b/BTCPayServer/Filters/XFrameOptionsAttribute.cs @@ -10,6 +10,12 @@ namespace BTCPayServer.Filters Value = value; } + [Obsolete("Do not use second parameter ignored")] + public XFrameOptionsAttribute(XFrameOptions type, string _ = null) : this(type) + { + + } + public XFrameOptionsAttribute(XFrameOptions type) { Value = type switch