From f66ddc7e03b8631f71b8739acf97742dba39b485 Mon Sep 17 00:00:00 2001 From: Laura Gomez Date: Fri, 3 Jan 2020 15:28:16 -0500 Subject: [PATCH] refactor: cleaned up code. --- ICD.Common.Utils/PathUtils.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ICD.Common.Utils/PathUtils.cs b/ICD.Common.Utils/PathUtils.cs index 07840ae..bdc6495 100644 --- a/ICD.Common.Utils/PathUtils.cs +++ b/ICD.Common.Utils/PathUtils.cs @@ -385,7 +385,8 @@ namespace ICD.Common.Utils if (!webServerPath.StartsWith(WebServerPath)) throw new ArgumentException("Path is not in the web server directory"); - string local = webServerPath.Substring(WebServerPath.Length); + string local = webServerPath.Substring(WebServerPath.Length + 1) + .Replace('\\', '/'); return string.Format("{0}/{1}", IcdEnvironment.NetworkAddresses.First(), local); }