aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Library/PathExtensions.cs
diff options
context:
space:
mode:
authorJoshua M. Boniface <joshua@boniface.me>2021-03-08 16:39:40 -0500
committerGitHub <noreply@github.com>2021-03-08 16:39:40 -0500
commit82d88bdec6671fa6e89bf4e0844524799e9cbf11 (patch)
tree2ec9b56db5eef8cc46f3746372d79374cdfd1d98 /Emby.Server.Implementations/Library/PathExtensions.cs
parent90cdd1345dde15f987550c57c12fcd8e57af0de1 (diff)
parent02122f28cc7dce1758f4a8e714dc8a8e7f4bb21f (diff)
Merge pull request #5409 from ikomhoog/master
Diffstat (limited to 'Emby.Server.Implementations/Library/PathExtensions.cs')
-rw-r--r--Emby.Server.Implementations/Library/PathExtensions.cs2
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;
}