mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve WallFilter
This commit is contained in:
@@ -51,6 +51,7 @@ public class WallConfig implements WallConfigMBean {
|
||||
|
||||
private boolean commentAllow = false;
|
||||
private boolean strictSyntaxCheck = true;
|
||||
private boolean constArithmeticAllow = false;
|
||||
|
||||
private boolean describeAllow = false;
|
||||
|
||||
@@ -366,6 +367,14 @@ public class WallConfig implements WallConfigMBean {
|
||||
this.strictSyntaxCheck = strictSyntaxCheck;
|
||||
}
|
||||
|
||||
public boolean isConstArithmeticAllow() {
|
||||
return constArithmeticAllow;
|
||||
}
|
||||
|
||||
public void setConstArithmeticAllow(boolean constArithmeticAllow) {
|
||||
this.constArithmeticAllow = constArithmeticAllow;
|
||||
}
|
||||
|
||||
public Set<String> getDenyFunctions() {
|
||||
return denyFunctions;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user