From e7e1ccdec2d98f369776abc76cb6c61eae13d56b Mon Sep 17 00:00:00 2001 From: Tyler Gill Date: Tue, 10 Apr 2018 10:10:19 -0600 Subject: [PATCH] Fix auth-id hiding in MS Graph backends. --- Duplicati/Library/Backend/OneDrive/Exceptions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Duplicati/Library/Backend/OneDrive/Exceptions.cs b/Duplicati/Library/Backend/OneDrive/Exceptions.cs index fa8e154ea..d31562da2 100644 --- a/Duplicati/Library/Backend/OneDrive/Exceptions.cs +++ b/Duplicati/Library/Backend/OneDrive/Exceptions.cs @@ -11,7 +11,7 @@ namespace Duplicati.Library.Backend.MicrosoftGraph { public class MicrosoftGraphException : Exception { - private static readonly Regex authorizationHeaderRemover = new Regex(@"Authorization:\s*Bearer\s+[A-Za-z0-9+/=]+", RegexOptions.IgnoreCase); + private static readonly Regex authorizationHeaderRemover = new Regex(@"Authorization:\s*Bearer\s+\S+", RegexOptions.IgnoreCase); public MicrosoftGraphException(HttpResponseMessage response) : this(string.Format("{0}: {1} error from request {2}", response.StatusCode, response.ReasonPhrase, response.RequestMessage.RequestUri), response)