diff --git a/pom.xml b/pom.xml index bc2331d..51893db 100644 --- a/pom.xml +++ b/pom.xml @@ -50,11 +50,6 @@ commons-text 1.10.0 - - com.vdurmont - emoji-java - 5.1.1 - diff --git a/src/main/java/wtf/beatrice/hidekobot/datasources/ConfigurationSource.java b/src/main/java/wtf/beatrice/hidekobot/datasources/ConfigurationSource.java index b00c6f9..ab3ff71 100644 --- a/src/main/java/wtf/beatrice/hidekobot/datasources/ConfigurationSource.java +++ b/src/main/java/wtf/beatrice/hidekobot/datasources/ConfigurationSource.java @@ -2,6 +2,7 @@ package wtf.beatrice.hidekobot.datasources; import org.yaml.snakeyaml.DumperOptions; import org.yaml.snakeyaml.Yaml; +import org.yaml.snakeyaml.constructor.SafeConstructor; import wtf.beatrice.hidekobot.HidekoBot; import wtf.beatrice.hidekobot.util.Logger; @@ -57,7 +58,7 @@ public class ConfigurationSource } } // load the YAML file from the filesystem - Yaml fsConfigYaml = new Yaml(); + Yaml fsConfigYaml = new Yaml(new SafeConstructor()); LinkedHashMap fsConfigContents = null; // map holding all file entries try (InputStream fsConfigStream = new FileInputStream(fsConfigFile)) { fsConfigContents = fsConfigYaml.load(fsConfigStream); }