Skip to content

Commit

Permalink
Suppress warning message "Security framework of XStream not initializ…
Browse files Browse the repository at this point in the history
…ed, XStream is probably vulnerable."
  • Loading branch information
zuko7177 committed Sep 6, 2020
1 parent c4b091e commit e159e28
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public class KodiXmlMovieBean {

public static KodiXmlMovieBean makeFromXML(String xml) {
XStream xstream = KodiXmlMovieBean.getXMLSerializer();
xstream.allowTypesByWildcard(new String[] {
"moviescraper.doctord.**"
});
xstream.ignoreUnknownElements();
try {
KodiXmlMovieBean beanToReturn = (KodiXmlMovieBean) xstream.fromXML(xml);
Expand Down

0 comments on commit e159e28

Please sign in to comment.