Skip to content

Commit 07675de

Browse files
Fix error security transparent issue with method HandleExceptionImp (#934)
1 parent 3ca9ef6 commit 07675de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dotnet/src/dotnetframework/GxClasses/Helpers/CsrfHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ namespace GeneXus.Http
1212
{
1313
internal class CSRFHelper
1414
{
15+
[SecuritySafeCritical]
1516
internal static bool HandleException(Exception e, HttpContext httpContext)
1617
{
1718
if (RestAPIHelpers.ValidateCsrfToken())
@@ -20,6 +21,7 @@ internal static bool HandleException(Exception e, HttpContext httpContext)
2021
}
2122
return false;
2223
}
24+
[SecuritySafeCritical]
2325
private static bool HandleExceptionImp(Exception e, HttpContext httpContext)
2426
{
2527
if (e is HttpAntiForgeryException)

0 commit comments

Comments
 (0)