From 27c4b68192676b50a1b372e2f93c482e6bd26e2c Mon Sep 17 00:00:00 2001 From: KaveeshaPiumini Date: Wed, 30 Oct 2024 14:12:30 +0530 Subject: [PATCH] Encode spName variable with OWASP Java Encoder --- .../upload_service_provider_from_url_finish.jsp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/components/org.wso2.carbon.identity.sso.saml.ui/src/main/resources/web/sso-saml/upload_service_provider_from_url_finish.jsp b/components/org.wso2.carbon.identity.sso.saml.ui/src/main/resources/web/sso-saml/upload_service_provider_from_url_finish.jsp index 8021bb90b..c35c52f2b 100644 --- a/components/org.wso2.carbon.identity.sso.saml.ui/src/main/resources/web/sso-saml/upload_service_provider_from_url_finish.jsp +++ b/components/org.wso2.carbon.identity.sso.saml.ui/src/main/resources/web/sso-saml/upload_service_provider_from_url_finish.jsp @@ -1,7 +1,7 @@ + <%@page import="org.apache.axis2.context.ConfigurationContext"%> <%@ page import="org.wso2.carbon.CarbonConstants" %> <%@ page import="org.wso2.carbon.identity.sso.saml.stub.types.SAMLSSOServiceProviderDTO" %> @@ -25,6 +26,7 @@ <%@ page import="org.wso2.carbon.utils.ServerConstants" %> <%@ page import="java.util.ResourceBundle" %> <%@ page import="org.wso2.carbon.identity.sso.saml.ui.SAMLSSOUIUtil" %> +<%@ page import="org.owasp.encoder.Encode" %> CarbonUIMessage.sendCarbonUIMessage(e.getMessage(), CarbonUIMessage.ERROR, request, e); %> <% return; } -%> \ No newline at end of file +%>