From c86c283a08e86fc2d3bd5771f7f6727c7ac18307 Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Wed, 20 Oct 2021 13:47:04 +0200 Subject: [PATCH] https://github.com/umbraco/Umbraco-CMS/issues/11389 Use Path.GetTempPath instead of %temp% environment variable. --- .../AspNetCore/AspNetCoreHostingEnvironment.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreHostingEnvironment.cs b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreHostingEnvironment.cs index 19a90746132d..9e5919c1e265 100644 --- a/src/Umbraco.Web.Common/AspNetCore/AspNetCoreHostingEnvironment.cs +++ b/src/Umbraco.Web.Common/AspNetCore/AspNetCoreHostingEnvironment.cs @@ -115,7 +115,7 @@ public string LocalTempPath // hopefully it gets a new Guid or new application id? string hashString = SiteName + "::" + ApplicationId; string hash = hashString.GenerateHash(); - string siteTemp = Path.Combine(Environment.ExpandEnvironmentVariables("%temp%"), "UmbracoData", hash); + string siteTemp = Path.Combine(Path.GetTempPath(), "UmbracoData", hash); return _localTempPath = siteTemp;