File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
weixin-java-common/src/main/java/me/chanjar/weixin/common/util/xml Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 166
166
<dependency >
167
167
<groupId >com.thoughtworks.xstream</groupId >
168
168
<artifactId >xstream</artifactId >
169
- <version >1.4.9 </version >
169
+ <version >1.4.10 </version >
170
170
</dependency >
171
171
<!-- 由于guava较新的21.0版本需要jdk8,故而此处采用较低版本 -->
172
172
<dependency >
Original file line number Diff line number Diff line change @@ -49,6 +49,12 @@ public String encodeNode(String name) {
49
49
xstream .setMode (XStream .NO_REFERENCES );
50
50
xstream .addPermission (NullPermission .NULL );
51
51
xstream .addPermission (PrimitiveTypePermission .PRIMITIVES );
52
+ xstream .allowTypesByWildcard (new String []{
53
+ "me.chanjar.weixin.**" , "cn.binarywang.wx.**" , "com.github.binarywang.**"
54
+ });
55
+
56
+ XStream .setupDefaultSecurity (xstream );
57
+
52
58
xstream .setClassLoader (Thread .currentThread ().getContextClassLoader ());
53
59
return xstream ;
54
60
}
You can’t perform that action at this time.
0 commit comments