Skip to content

Commit 6713974

Browse files
authored
Merge pull request igniterealtime#3301 from guusdk/OF-3263_Forwarded-Host-inputparam
OF-3263: Fix setting of XFFHostHeader through admin console
2 parents d9f966f + e90e886 commit 6713974

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

xmppserver/src/main/webapp/http-bind.jsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<%--
22
-
3-
- Copyright (C) 2005-2008 Jive Software, 2017-2023 Ignite Realtime Foundation. All rights reserved.
3+
- Copyright (C) 2005-2008 Jive Software, 2017-2026 Ignite Realtime Foundation. All rights reserved.
44
-
55
- Licensed under the Apache License, Version 2.0 (the "License");
66
- you may not use this file except in compliance with the License.
@@ -92,7 +92,7 @@
9292
HttpBindManager.HTTP_BIND_FORWARDED_SERVER.setValue(xffServerHeader.trim());
9393
}
9494
95-
final String xffHostHeader = ParamUtils.getParameter( request, "xffHostHeader" );
95+
final String xffHostHeader = ParamUtils.getParameter( request, "XFFHostHeader" );
9696
if (xffHostHeader == null || xffHostHeader.trim().isEmpty()) {
9797
HttpBindManager.HTTP_BIND_FORWARDED_HOST.setValue(null);
9898
} else {

xmppserver/src/main/webapp/system-admin-console-access.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@
142142
AdminConsolePlugin.ADMIN_CONSOLE_FORWARDED_SERVER.setValue(xffServerHeader.trim());
143143
}
144144
145-
final String xffHostHeader = ParamUtils.getParameter( request, "xffHostHeader" );
145+
final String xffHostHeader = ParamUtils.getParameter( request, "XFFHostHeader" );
146146
if (xffHostHeader == null || xffHostHeader.trim().isEmpty()) {
147147
AdminConsolePlugin.ADMIN_CONSOLE_FORWARDED_HOST.setValue(null);
148148
} else {

0 commit comments

Comments
 (0)