Skip to content

Commit

Permalink
Merge branch 'develop' into claudio/ftplib
Browse files Browse the repository at this point in the history
  • Loading branch information
p4p3r authored Oct 24, 2024
2 parents 16feb4f + e91dd3f commit e66302c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 7 additions & 0 deletions csharp/lang/security/stacktrace-disclosure.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@ public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
app.UseExceptionHandler("/Error");
}
}

public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
// ok: stacktrace-disclosure
app.UseDeveloperExceptionPage();
}
2 changes: 0 additions & 2 deletions csharp/lang/security/stacktrace-disclosure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ rules:
- pattern: $APP.UseDeveloperExceptionPage(...);
- pattern-not-inside: |
if ($ENV.IsDevelopment(...)) {
...
$APP.UseDeveloperExceptionPage(...);
...
}
message: >-
Expand Down

0 comments on commit e66302c

Please sign in to comment.