aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShadowghost <Ghost_of_Stone@web.de>2026-07-21 14:30:55 +0200
committerShadowghost <Ghost_of_Stone@web.de>2026-07-21 14:30:55 +0200
commit4cc69f4be0a568ebc8c922dcf1f855458755ad85 (patch)
treef3479573a223fe3acbd22faf6b3bf293ff5140d4 /src
parentb99703301f43927f632bbc49d040a32824d43cb3 (diff)
Apply review suggestions
Diffstat (limited to 'src')
-rw-r--r--src/Jellyfin.Extensions/PathHelper.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Jellyfin.Extensions/PathHelper.cs b/src/Jellyfin.Extensions/PathHelper.cs
index f519cbb651..ab74a7749d 100644
--- a/src/Jellyfin.Extensions/PathHelper.cs
+++ b/src/Jellyfin.Extensions/PathHelper.cs
@@ -33,7 +33,7 @@ public static class PathHelper
}
var leaf = Path.GetFileName(fileName);
- if (string.IsNullOrEmpty(leaf) || leaf == "." || leaf == "..")
+ if (string.IsNullOrEmpty(leaf) || string.Equals(leaf, ".", StringComparison.Ordinal) || string.Equals(leaf, "..", StringComparison.Ordinal))
{
return null;
}