fixed bugs
This commit is contained in:
parent
ff9e257362
commit
2af6f848bb
12 changed files with 554 additions and 99 deletions
|
@ -4632,8 +4632,6 @@ Please ensure the space has been allocated {0} IP address as a dedicated one and
|
|||
return false;
|
||||
}
|
||||
|
||||
siteId = RemoveProtocolFromUrl(siteId);
|
||||
|
||||
var webServer = GetWebServer(GetWebServerServiceID(org.PackageId));
|
||||
|
||||
return webServer.GetDirectoryBrowseEnabled(siteId);
|
||||
|
@ -4648,23 +4646,11 @@ Please ensure the space has been allocated {0} IP address as a dedicated one and
|
|||
return;
|
||||
}
|
||||
|
||||
siteId = RemoveProtocolFromUrl(siteId);
|
||||
|
||||
var webServer = GetWebServer(GetWebServerServiceID(org.PackageId));
|
||||
|
||||
webServer.SetDirectoryBrowseEnabled(siteId, enabled);
|
||||
}
|
||||
|
||||
private static string RemoveProtocolFromUrl(string input)
|
||||
{
|
||||
if (input.Contains("//"))
|
||||
{
|
||||
return System.Text.RegularExpressions.Regex.Split(input, "//")[1];
|
||||
}
|
||||
|
||||
return input;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private static int GetWebServerServiceID(int packageId)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue