The Free Software Media System - Server Backend & API
Changed string.Length == 0 to string.IsNullOrEmpty in case of null
Ikomhoogd4201f812cac
diff --git a/Emby.Server.Implementations/Library/PathExtensions.cs b/Emby.Server.Implementations/Library/PathExtensions.csindex d9e20e19ac..7dcc925c2f 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;}