Skip to content

Commit

Permalink
clean up bodyregex sanitizers
Browse files Browse the repository at this point in the history
  • Loading branch information
scbedd committed Apr 25, 2024
1 parent ef474db commit c701942
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public SanitizerDictionary() {
#endregion
#region BodyRegex
new RegisteredSanitizer(
new BodyRegexSanitizer(regex: "(client_id=)(?<cid>[^&]+)", groupForReplace: "cid"),
new BodyRegexSanitizer(regex: "(client_id=)(?<cid>[^&\\\"]+)", groupForReplace: "cid"),
"AZSDK3000"
),
new RegisteredSanitizer(
Expand All @@ -242,7 +242,7 @@ public SanitizerDictionary() {
"AZSDK3003"
),
new RegisteredSanitizer(
new BodyRegexSanitizer(regex: "token=(?<token>[^&]+)($|&)", groupForReplace: "token"),
new BodyRegexSanitizer(regex: "token=(?<token>[^&\\\"]+)($|&)", groupForReplace: "token"),
"AZSDK3004"
),
new RegisteredSanitizer(
Expand Down

0 comments on commit c701942

Please sign in to comment.