Fix auth-id hiding in MS Graph backends.

This commit is contained in:
Tyler Gill
2018-04-10 10:10:19 -06:00
parent 3361e27e77
commit e7e1ccdec2
@@ -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)