mirror of https://github.com/apache/activemq.git
[AMQ-8348] Fix XmlMessageRenderer has the risk of XStream deserialization
This commit is contained in:
parent
f7f52ccc7a
commit
099108239c
|
@ -42,6 +42,7 @@ public class XmlMessageRenderer extends SimpleMessageRenderer {
|
|||
public XStream getXstream() {
|
||||
if (xstream == null) {
|
||||
xstream = new XStream();
|
||||
XStream.setupDefaultSecurity(xstream);
|
||||
}
|
||||
return xstream;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue