Skip to content

Commit

Permalink
Update sync.d
Browse files Browse the repository at this point in the history
* Update fix for Issue #2740
  • Loading branch information
abraunegg committed Aug 5, 2024
1 parent 2064dc4 commit 712c9d3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/sync.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 712c9d3

Please sign in to comment.