mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed #5154,avoid spring RCE
This commit is contained in:
@@ -30,6 +30,9 @@ public class TableMetaTSDBBuilder {
|
||||
if (applicationContext == null) {
|
||||
synchronized (contexts) {
|
||||
if (applicationContext == null) {
|
||||
if (!StringUtils.startsWithIgnoreCase("classpath:", springXml)) {
|
||||
springXml = "classpath:" + springXml;
|
||||
}
|
||||
applicationContext = new ClassPathXmlApplicationContext(springXml);
|
||||
contexts.put(destination, applicationContext);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user