Skip to content

Commit

Permalink
https://github.com/umbraco/Umbraco-CMS/issues/11389
Browse files Browse the repository at this point in the history
Use Path.GetTempPath instead of %temp% environment variable.
  • Loading branch information
bergmania committed Oct 20, 2021
1 parent eb7e01f commit c86c283
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c86c283

Please sign in to comment.