Changed all references of umbracoUseSSL to Umbraco.Core.UseHttps to fix issue #4749

This commit is contained in:
Robert Foster
2019-02-28 16:48:56 +10:00
parent b5bda772af
commit 5aa38c1f43
12 changed files with 46 additions and 46 deletions

View File

@@ -183,7 +183,7 @@ namespace Umbraco.Web.HealthCheck.Checks.Security
private HealthCheckStatus FixHttpsSetting()
{
var configFile = IOHelper.MapPath("~/Web.config");
const string xPath = "/configuration/appSettings/add[@key='umbracoUseSSL']/@value";
const string xPath = "/configuration/appSettings/add[@key='Umbraco.Core.UseHttps']/@value";
var configurationService = new ConfigurationService(configFile, xPath, _textService);
var updateConfigFile = configurationService.UpdateConfigFile("true");