Merge pull request #11430 from umbraco/v9/hotfix/11389-use-path.gettemppath

Use Path.GetTempPath instead of %temp% environment variable.
This commit is contained in:
Nikolaj Geisle
2021-10-21 13:32:53 +02:00
committed by GitHub

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;