mirror of https://github.com/apache/activemq.git
[AMQ-8348] Fix XmlMessageRenderer has the risk of XStream deserialization
(cherry picked from commit 099108239c
)
This commit is contained in:
parent
ec23ab93dd
commit
0b28d92280
|
@ -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