Skip to content

Commit

Permalink
Add fixes from PR : wso2#13316
Browse files Browse the repository at this point in the history
U2 number : 9258
  • Loading branch information
RusJaI committed Feb 20, 2024
1 parent 2612994 commit 1703d91
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/distribution/product/src/main/extensions/header.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@

<%
String tenant = request.getParameter("tenantDomain");
if (tenant == null) {
tenant = request.getParameter("TenantDomain");
}
if (tenant == null) {
String cb = request.getParameter("callback");
cb = StringUtils.replace(cb, " ", "");
Expand All @@ -39,7 +42,7 @@
String decodedValue = uri.getQuery();
String[] params = decodedValue.split("&");
for (String param : params) {
if (param.startsWith("tenantDomain=")) {
if (param.startsWith("tenantDomain=") || param.startsWith("TenantDomain=")) {
String[] keyVal = param.split("=");
tenant = keyVal[1];
}
Expand Down

0 comments on commit 1703d91

Please sign in to comment.