Update BackupHandler.cs

Minor fixes
This commit is contained in:
Kenneth Skovhede
2026-02-18 11:54:42 +01:00
committed by GitHub
parent 798f3a6e9a
commit e14ccd5cb7
@@ -156,7 +156,7 @@ namespace Duplicati.Library.Main.Operation
foreach (var url in entry)
{
var sanitizedUrl = Library.Utility.Utility.GetUrlWithoutCredentials(url);
var m = Regex.Match(url, @"^@(?<mountpoint>[^|]+\|)*(?<url>.+)$", RegexOptions.IgnoreCase);
var m = Regex.Match(url, @"^@(?<mountpoint>[^|]+\|)+(?<url>.+)$", RegexOptions.IgnoreCase);
if (m.Success)
{
var mountpoint = m.Groups["mountpoint"].Value;
@@ -186,7 +186,6 @@ namespace Duplicati.Library.Main.Operation
continue;
}
Console.WriteLine(ex.StackTrace);
throw new UserInformationException($"Failed to load source provider for \"{sanitizedUrl}\": {ex.Message}", "SourceProviderFailed", ex);
}