diff options
| author | Cody Robibero <cody@robibe.ro> | 2023-11-15 16:35:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-15 16:35:14 -0700 |
| commit | 6d1abf67c36379f0b061095619147a3691841e21 (patch) | |
| tree | 510a271453b8ff2b82cfd5676f2ec8ea76c233ad /Jellyfin.Api/Controllers/EnvironmentController.cs | |
| parent | 350df4a617d4c9f350ec0a356aedf7ec8944d155 (diff) | |
| parent | 5fa1b8ac3a7e65f0972e4fc55e83172f66efd794 (diff) | |
Merge pull request #10463 from jellyfin/dotnet8
Update to .NET 8
Diffstat (limited to 'Jellyfin.Api/Controllers/EnvironmentController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/EnvironmentController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/EnvironmentController.cs b/Jellyfin.Api/Controllers/EnvironmentController.cs index e0713cf05..284a97621 100644 --- a/Jellyfin.Api/Controllers/EnvironmentController.cs +++ b/Jellyfin.Api/Controllers/EnvironmentController.cs @@ -169,7 +169,7 @@ public class EnvironmentController : BaseJellyfinApiController // Check if unc share var index = path.LastIndexOf(UncSeparator); - if (index != -1 && path.IndexOf(UncSeparator, StringComparison.OrdinalIgnoreCase) == 0) + if (index != -1 && path[0] == UncSeparator) { parent = path.Substring(0, index); |
