Skip to content

Commit

Permalink
Merge pull request #3848 from daguiler/bugfix/DNN-40684
Browse files Browse the repository at this point in the history
Revert "DNN-35719: page in redirect mode doesn't work under ssl offloading environment"
  • Loading branch information
mitchelsellers committed Jun 23, 2020
2 parents d88230f + f643730 commit be27402
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions DNN Platform/Library/Common/Utilities/UrlUtils.cs
Expand Up @@ -167,8 +167,7 @@ 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)
{
var isSecureTab = PortalController.Instance.GetCurrentPortalSettings()?.ActiveTab.IsSecure ?? false;
return request.IsSecureConnection || (IsSslOffloadEnabled(request) && isSecureTab);
return request.IsSecureConnection || IsSslOffloadEnabled(request);
}

public static bool IsSslOffloadEnabled(HttpRequest request)
Expand Down

0 comments on commit be27402

Please sign in to comment.