From 919eea59fca2426fff86d11fbc3f05bdb7b8a0f3 Mon Sep 17 00:00:00 2001 From: Rune Henriksen Date: Tue, 6 Nov 2018 23:44:36 +0100 Subject: [PATCH] fixed sia and trailing ? regex --- Duplicati/Server/Database/Backup.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Duplicati/Server/Database/Backup.cs b/Duplicati/Server/Database/Backup.cs index b4d6d21f1..efc74bfc3 100644 --- a/Duplicati/Server/Database/Backup.cs +++ b/Duplicati/Server/Database/Backup.cs @@ -110,13 +110,13 @@ namespace Duplicati.Server.Database // remove auth-password url = Regex.Replace(url, "auth-password=[^&\n]+[&]?", ""); // remove backupsia-password - url = Regex.Replace(url, "backupsia-password=[^&\n]+[&]?", ""); + url = Regex.Replace(url, "sia-password=[^&\n]+[&]?", ""); // Remove edge case of '?&' url = Regex.Replace(url, Regex.Escape("?&"), ""); // Remove edge case of '&' at end of line url = Regex.Replace(url, "&$", ""); // Remove edge case of '?' at end of line - url = Regex.Replace(url, Regex.Escape("?"), ""); + url = Regex.Replace(url, Regex.Escape("?") + "$", ""); this.TargetURL = url; } }