diff options
author | Anton Tananaev <anton@traccar.org> | 2024-06-01 13:44:30 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2024-06-01 13:44:30 -0700 |
commit | d83502ac2885c64a9d65a17e1573dedc9b0680d4 (patch) | |
tree | 85291a4babc47c4c3e0406ee6340e417e84f2a09 /src/main/java/org/traccar/MainModule.java | |
parent | 20983b9549388f02c609fb91db82f171b0c4efee (diff) | |
download | trackermap-server-d83502ac2885c64a9d65a17e1573dedc9b0680d4.tar.gz trackermap-server-d83502ac2885c64a9d65a17e1573dedc9b0680d4.tar.bz2 trackermap-server-d83502ac2885c64a9d65a17e1573dedc9b0680d4.zip |
Remove sanitization option
Diffstat (limited to 'src/main/java/org/traccar/MainModule.java')
-rw-r--r-- | src/main/java/org/traccar/MainModule.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main/java/org/traccar/MainModule.java b/src/main/java/org/traccar/MainModule.java index 89d3d2fe0..66238ab44 100644 --- a/src/main/java/org/traccar/MainModule.java +++ b/src/main/java/org/traccar/MainModule.java @@ -79,7 +79,6 @@ import org.traccar.handler.GeolocationHandler; import org.traccar.handler.SpeedLimitHandler; import org.traccar.handler.TimeHandler; import org.traccar.helper.ObjectMapperContextResolver; -import org.traccar.helper.SanitizerModule; import org.traccar.helper.WebHelper; import org.traccar.mail.LogMailManager; import org.traccar.mail.MailManager; @@ -132,11 +131,8 @@ public class MainModule extends AbstractModule { @Singleton @Provides - public static ObjectMapper provideObjectMapper(Config config) { + public static ObjectMapper provideObjectMapper() { ObjectMapper objectMapper = new ObjectMapper(); - if (config.getBoolean(Keys.WEB_SANITIZE)) { - objectMapper.registerModule(new SanitizerModule()); - } objectMapper.registerModule(new JSONPModule()); objectMapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); return objectMapper; |