Skip to content

Commit

Permalink
Catch FormatException from get_Uri
Browse files Browse the repository at this point in the history
  • Loading branch information
e-n-0 committed Dec 30, 2024
1 parent 6486306 commit 42915cf
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ public static void SetQuery(UriBuilder instance, string parameter)
{
PropagationModuleImpl.PropagateWholeResultWhenInputTainted(instance.Uri.OriginalString, parameter);
}
catch (FormatException ex)
{
IastModule.Log.Debug(ex, $"Error invoking {nameof(UriBuilderAspect)}.{nameof(SetQuery)}");
}
catch (Exception ex)
{
IastModule.Log.Error(ex, $"Error invoking {nameof(UriBuilderAspect)}.{nameof(SetQuery)}");
Expand Down

0 comments on commit 42915cf

Please sign in to comment.