diff --git a/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Common/SanitizerDictionary.cs b/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Common/SanitizerDictionary.cs index ec3c034f235..de36c512d45 100644 --- a/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Common/SanitizerDictionary.cs +++ b/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Common/SanitizerDictionary.cs @@ -226,7 +226,7 @@ public SanitizerDictionary() { #endregion #region BodyRegex new RegisteredSanitizer( - new BodyRegexSanitizer(regex: "(client_id=)(?[^&]+)", groupForReplace: "cid"), + new BodyRegexSanitizer(regex: "(client_id=)(?[^&\\\"]+)", groupForReplace: "cid"), "AZSDK3000" ), new RegisteredSanitizer( @@ -242,7 +242,7 @@ public SanitizerDictionary() { "AZSDK3003" ), new RegisteredSanitizer( - new BodyRegexSanitizer(regex: "token=(?[^&]+)($|&)", groupForReplace: "token"), + new BodyRegexSanitizer(regex: "token=(?[^&\\\"]+)($|&)", groupForReplace: "token"), "AZSDK3004" ), new RegisteredSanitizer(