aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Relay
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-06-07 14:45:04 -0500
committerGitHub <noreply@github.com>2026-06-07 14:45:04 -0500
commitb747b68ba0ba777be578e73bd1328fbde940e436 (patch)
tree160d23aeb8707dc04f81bb52e81913c1b77bb2a4 /src/slskd/Relay
parente06999e5eec1616d93b34ffbab0eade617d1aaf6 (diff)
parent2d069bbf1f71f38e1286e27d45c24b478feb11ac (diff)
downloadslskd-b747b68ba0ba777be578e73bd1328fbde940e436.tar.gz
Merge branch 'master' into dependabot/npm_and_yarn/src/web/launch-editor-2.14.1
Diffstat (limited to 'src/slskd/Relay')
-rw-r--r--src/slskd/Relay/API/Controllers/RelayController.cs2
-rw-r--r--src/slskd/Relay/RelayClient.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/slskd/Relay/API/Controllers/RelayController.cs b/src/slskd/Relay/API/Controllers/RelayController.cs
index fdc6dbe6..ddb8d0b0 100644
--- a/src/slskd/Relay/API/Controllers/RelayController.cs
+++ b/src/slskd/Relay/API/Controllers/RelayController.cs
@@ -345,7 +345,7 @@ namespace slskd.Relay
}
Directory.CreateDirectory(FileSafety.CombineSafely(Path.GetTempPath(), Program.AppName));
- var temp = FileSafety.CombineSafely(Path.GetTempPath(), Program.AppName, $"share_{agentName.ReplaceInvalidFileNameCharacters()}_{Path.GetRandomFileName()}.db");
+ var temp = FileSafety.CombineSafely(Path.GetTempPath(), Program.AppName, $"share_{FileSafety.SanitizeFilename(agentName)}_{Path.GetRandomFileName()}.db");
try
{
diff --git a/src/slskd/Relay/RelayClient.cs b/src/slskd/Relay/RelayClient.cs
index 974ca71e..5c5f9d38 100644
--- a/src/slskd/Relay/RelayClient.cs
+++ b/src/slskd/Relay/RelayClient.cs
@@ -484,7 +484,7 @@ namespace slskd.Relay
// if the controller is Windows and the agent is Linux or vice versa, we need to translate the filename to the
// local OS or we're going to get funny results when we go to write the file
- destinationFile = destinationFile.LocalizePath();
+ destinationFile = FileSafety.LocalizePath(destinationFile);
await Retry.Do(task: async () =>
{