From 712c9d3479c0922d2b72e298864e9ea3f9daf83e Mon Sep 17 00:00:00 2001 From: abraunegg Date: Mon, 5 Aug 2024 13:40:06 +1000 Subject: [PATCH] Update sync.d * Update fix for Issue #2740 --- src/sync.d | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/sync.d b/src/sync.d index 1d9e00e66..dcdf1460f 100644 --- a/src/sync.d +++ b/src/sync.d @@ -3762,8 +3762,16 @@ class SyncEngine { // Issue #2740 // If selfBuiltPath is containing any sort of URL encoding, due to special characters (spaces, umlaut, or any other character that is HTML encoded, this specific path now needs to be HTML decoded - // Set newItemPath to the self built decoded path - newItemPath = decodeComponent(selfBuiltPath); + addLogEntry("selfBuiltPath for sync_list check: " ~ selfBuiltPath, ["debug"]); + + // Does the path contain HTML encoding? + if (containsURLEncodedItems(selfBuiltPath)) { + // decode it + newItemPath = decodeComponent(selfBuiltPath); + } else { + // use as-is + newItemPath = selfBuiltPath; + } } else { // no parent reference path available in provided JSON newItemPath = thisItemName;