mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +00:00
refactor: cleaned up code.
This commit is contained in:
parent
b5fc25de7c
commit
f66ddc7e03
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue