Skip to content

Commit

Permalink
Merge pull request umbraco#11430 from umbraco/v9/hotfix/11389-use-pat…
Browse files Browse the repository at this point in the history
…h.gettemppath

Use Path.GetTempPath instead of %temp% environment variable.
  • Loading branch information
Zeegaan authored Oct 21, 2021
2 parents eb7e01f + c86c283 commit b6d3e2d
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 b6d3e2d

Please sign in to comment.