Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions api/src/org/labkey/api/util/URLHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,10 @@ public static StringBuilder getBaseServer(String scheme, String host, int port)
public boolean isLocalUri(ViewContext currentContext)
{
return getHost() == null
|| currentContext == null
|| currentContext.getActionURL() == null
|| getHost().equalsIgnoreCase(currentContext.getActionURL().getHost());
|| currentContext == null
|| currentContext.getActionURL() == null
// Scheme check is here for test SAML redirect, which is to the same host ("localhost") but a different scheme
|| (getHost().equalsIgnoreCase(currentContext.getActionURL().getHost()) && getScheme().equalsIgnoreCase(currentContext.getActionURL().getScheme()));
}

public String getURIString()
Expand Down