Browse files

FCREPO-1078 A function to return a datastream as an XML tree

Correction
  • Loading branch information...
1 parent 7ac7427 commit 0f28093ad8632512ce9f2c0673cf73e0462f6e6a Gert Schmeltz Pedersen committed Mar 28, 2012
View
2 FedoraGenericSearch/src/java/dk/defxws/fedoragsearch/server/GenericOperationsImpl.java
@@ -1075,7 +1075,7 @@ private Node getDocumentNode(String xmlString) {
private Node getExceptionNode(String exceptionMessage) {
logger.error("getExceptionNode" + " exceptionMessage="+exceptionMessage);
- String xmlString = "<exception><message>"+exceptionMessage+"</message></exception>";
+ String xmlString = "<exception><message>"+exceptionMessage.replaceAll("<", "&lt;")+"</message></exception>";
Node doc = getDocumentNode(xmlString);
return doc;
}

0 comments on commit 0f28093

Please sign in to comment.