diff options
| author | Abdulmohsen <ArabCoders@users.noreply.github.com> | 2023-11-24 00:00:53 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-24 00:00:53 +0300 |
| commit | 9d5dc4d71b6f542d4adb60a6287a86f558c1dcc2 (patch) | |
| tree | b646b8209bd90df22c4a2a2df612f09b3be2c170 /Jellyfin.Api/Controllers/EnvironmentController.cs | |
| parent | 324c86e14d9d76670b4e3439c2ed5fcbbfb9f8ff (diff) | |
| parent | 3d4d33bcbac07be40c132cf3a3c39630ace7b444 (diff) | |
Merge branch 'jellyfin:master' into master
Diffstat (limited to 'Jellyfin.Api/Controllers/EnvironmentController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/EnvironmentController.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/EnvironmentController.cs b/Jellyfin.Api/Controllers/EnvironmentController.cs index 8c9ee1a19..284a97621 100644 --- a/Jellyfin.Api/Controllers/EnvironmentController.cs +++ b/Jellyfin.Api/Controllers/EnvironmentController.cs @@ -5,6 +5,7 @@ using System.IO; using System.Linq; using Jellyfin.Api.Constants; using Jellyfin.Api.Models.EnvironmentDtos; +using MediaBrowser.Common.Api; using MediaBrowser.Common.Extensions; using MediaBrowser.Model.IO; using Microsoft.AspNetCore.Authorization; @@ -168,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); |
