Skip to content

Commit

Permalink
DNN-35719: page in redirect mode doesn't work under ssl offloading en…
Browse files Browse the repository at this point in the history
…vironment. (dnnsoftware#3453)
  • Loading branch information
zyhfish authored and donker committed Jan 11, 2020
1 parent 3d420c4 commit 6e72329
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DNN Platform/Library/Common/Utilities/UrlUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ public static string[] GetQSParamsForNavigateURL()
/// <returns>true if HTTPS or if HTTP with an SSL offload header value, false otherwise</returns>
public static bool IsSecureConnectionOrSslOffload(HttpRequest request)
{
return request.IsSecureConnection || IsSslOffloadEnabled(request);
var isSecureTab = PortalController.Instance.GetCurrentPortalSettings()?.ActiveTab.IsSecure ?? false;
return request.IsSecureConnection || (IsSslOffloadEnabled(request) && isSecureTab);
}

public static bool IsSslOffloadEnabled(HttpRequest request)
Expand Down

0 comments on commit 6e72329

Please sign in to comment.