Skip to content

Commit 59ed219

Browse files
Restore _httpContext parameter passed to RequestPhysicalApplicationPath (#732)
* Restore _httpContext parameter passed to RequestPhysicalApplicationPath when called from GetPhysicalPath, lost at #709 * Pass HttpContext property instead of _HttpContext field. (cherry picked from commit 0e994b0)
1 parent 1f003a6 commit 59ed219

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dotnet/src/dotnetframework/GxClasses/Core/GXApplication.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2900,7 +2900,7 @@ public string GetPhysicalPath()
29002900
{
29012901
if (HttpContext != null)
29022902
{
2903-
_physicalPath = RequestPhysicalPath();
2903+
_physicalPath = RequestPhysicalPath(HttpContext);
29042904
}
29052905
else
29062906
{
@@ -2948,9 +2948,9 @@ public static bool IsHttpContext
29482948
}
29492949
#endif
29502950
}
2951-
private static string RequestPhysicalPath()
2951+
private static string RequestPhysicalPath(HttpContext httpContext=null)
29522952
{
2953-
string phPath = HttpHelper.RequestPhysicalApplicationPath();
2953+
string phPath = HttpHelper.RequestPhysicalApplicationPath(httpContext);
29542954
string dirSeparator = Path.DirectorySeparatorChar.ToString();
29552955
if (!phPath.EndsWith(dirSeparator))
29562956
return $"{phPath}{dirSeparator}";

0 commit comments

Comments
 (0)