mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
修复rest etl 存在SQL注入风险 (#1685)
* kafka 模式默认开启事务异步发送 * fix adapter etl rest sql inject bug
This commit is contained in:
@@ -203,7 +203,7 @@ public class CanalKafkaProducer implements CanalMQProducer {
|
||||
null,
|
||||
JSON.toJSONString(flatMessage, SerializerFeature.WriteMapNullValue));
|
||||
if (kafkaProperties.getTransaction()) {
|
||||
producer2.send(record).get();
|
||||
producer2.send(record);
|
||||
} else {
|
||||
producer2.send(record).get();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user