Browse Source

Use Path.Combine

Joshua Boniface 6 years ago
parent
commit
382b8bb509
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs

+ 1 - 1
Emby.Server.Implementations/AppBase/BaseConfigurationManager.cs

@@ -178,7 +178,7 @@ namespace Emby.Server.Implementations.AppBase
                 if (string.IsNullOrWhiteSpace(((BaseApplicationPaths)CommonApplicationPaths).CachePath))
                 if (string.IsNullOrWhiteSpace(((BaseApplicationPaths)CommonApplicationPaths).CachePath))
                 {
                 {
                     // Set cachePath to a default value under ProgramDataPath
                     // Set cachePath to a default value under ProgramDataPath
-                    cachePath = (((BaseApplicationPaths)CommonApplicationPaths).ProgramDataPath + "/cache");
+                    cachePath = Path.Combine(((BaseApplicationPaths)CommonApplicationPaths).ProgramDataPath, "cache");
                 }
                 }
                 else
                 else
                 {
                 {