Skip to content
Snippets Groups Projects
Commit 8ad5231e authored by Olivier Maury's avatar Olivier Maury
Browse files

Use CDATA in XML

parent 2b9e67e7
No related branches found
No related tags found
No related merge requests found
Pipeline #162533 passed
......@@ -52,7 +52,7 @@ public final class ValidateCAS2Servlet extends HttpServlet {
* The XML response in case of validation failure.
*/
private static final String FAILURE_XML = "<cas:serviceResponse xmlns:cas=\"http://www.yale.edu/tp/cas\">%n"
+ " <cas:authenticationFailure code=\"%s\">%s</cas:authenticationFailure>%n" //
+ " <cas:authenticationFailure code=\"%s\"><![CDATA[%s]]></cas:authenticationFailure>%n" //
+ "</cas:serviceResponse>";
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment