diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2021-03-08 16:39:40 -0500 |
|---|---|---|
| committer | Joshua M. Boniface <joshua@boniface.me> | 2021-03-08 18:08:26 -0500 |
| commit | 63868eca40d88a0fea5e055d0997a0dd57e8181e (patch) | |
| tree | e6c7356440395e38e2d1dba2f4fddcd32391ba54 /Emby.Server.Implementations/Library/PathExtensions.cs | |
| parent | f6e8493d690fe9cc353c4c381a1bac2696bd7f83 (diff) | |
Merge pull request #5409 from ikomhoog/master
(cherry picked from commit 82d88bdec6671fa6e89bf4e0844524799e9cbf11)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
Diffstat (limited to 'Emby.Server.Implementations/Library/PathExtensions.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/PathExtensions.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Library/PathExtensions.cs b/Emby.Server.Implementations/Library/PathExtensions.cs index d9e20e19a..7dcc925c2 100644 --- a/Emby.Server.Implementations/Library/PathExtensions.cs +++ b/Emby.Server.Implementations/Library/PathExtensions.cs @@ -63,7 +63,7 @@ namespace Emby.Server.Implementations.Library { newPath = null; - if (path.Length == 0 || subPath.Length == 0 || newSubPath.Length == 0 || subPath.Length > path.Length) + if (string.IsNullOrEmpty(path) || string.IsNullOrEmpty(subPath) || string.IsNullOrEmpty(newSubPath) || subPath.Length > path.Length) { return false; } |
