Skip to content

Commit b6d3e2d

Browse files
authored
Merge pull request #11430 from umbraco/v9/hotfix/11389-use-path.gettemppath
Use Path.GetTempPath instead of %temp% environment variable.
2 parents eb7e01f + c86c283 commit b6d3e2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Umbraco.Web.Common/AspNetCore/AspNetCoreHostingEnvironment.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public string LocalTempPath
115115
// hopefully it gets a new Guid or new application id?
116116
string hashString = SiteName + "::" + ApplicationId;
117117
string hash = hashString.GenerateHash();
118-
string siteTemp = Path.Combine(Environment.ExpandEnvironmentVariables("%temp%"), "UmbracoData", hash);
118+
string siteTemp = Path.Combine(Path.GetTempPath(), "UmbracoData", hash);
119119

120120
return _localTempPath = siteTemp;
121121

0 commit comments

Comments
 (0)