Use Path.GetTempPath instead of %temp% environment variable.
This commit is contained in:
Bjarke Berg
2021-10-20 13:47:04 +02:00
parent eb7e01f177
commit c86c283a08

View File

@@ -115,7 +115,7 @@ namespace Umbraco.Cms.Web.Common.AspNetCore
// 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;