mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve wall filter
This commit is contained in:
@@ -65,6 +65,7 @@ public class WallConfig implements WallConfigMBean {
|
||||
private boolean commentAllow = false;
|
||||
private boolean strictSyntaxCheck = true;
|
||||
private boolean constArithmeticAllow = true;
|
||||
private boolean limitZeroAllow = false;
|
||||
|
||||
private boolean describeAllow = true;
|
||||
private boolean showAllow = true;
|
||||
@@ -109,10 +110,20 @@ public class WallConfig implements WallConfigMBean {
|
||||
|
||||
}
|
||||
|
||||
public boolean isLimitZeroAllow() {
|
||||
return limitZeroAllow;
|
||||
}
|
||||
|
||||
public void setLimitZeroAllow(boolean limitZero) {
|
||||
this.limitZeroAllow = limitZero;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public boolean isConditionAndAlwayTrueAllow() {
|
||||
return conditionAndAlwayTrueAllow;
|
||||
}
|
||||
|
||||
|
||||
public void setConditionAndAlwayTrueAllow(boolean conditionAndAlwayTrueAllow) {
|
||||
this.conditionAndAlwayTrueAllow = conditionAndAlwayTrueAllow;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user