正在显示
3 个修改的文件
包含
3 行增加
和
5 行删除
| @@ -713,7 +713,7 @@ public class Convert | @@ -713,7 +713,7 @@ public class Convert | ||
| 713 | } | 713 | } |
| 714 | if (value instanceof Double) | 714 | if (value instanceof Double) |
| 715 | { | 715 | { |
| 716 | - return new BigDecimal((Double) value); | 716 | + return BigDecimal.valueOf((Double) value); |
| 717 | } | 717 | } |
| 718 | if (value instanceof Integer) | 718 | if (value instanceof Integer) |
| 719 | { | 719 | { |
| @@ -116,8 +116,7 @@ public class FileUtils | @@ -116,8 +116,7 @@ public class FileUtils | ||
| 116 | // 路径为文件且不为空则进行删除 | 116 | // 路径为文件且不为空则进行删除 |
| 117 | if (file.isFile() && file.exists()) | 117 | if (file.isFile() && file.exists()) |
| 118 | { | 118 | { |
| 119 | - file.delete(); | ||
| 120 | - flag = true; | 119 | + flag = file.delete(); |
| 121 | } | 120 | } |
| 122 | return flag; | 121 | return flag; |
| 123 | } | 122 | } |
| @@ -289,5 +288,4 @@ public class FileUtils | @@ -289,5 +288,4 @@ public class FileUtils | ||
| 289 | String baseName = FilenameUtils.getBaseName(fileName); | 288 | String baseName = FilenameUtils.getBaseName(fileName); |
| 290 | return baseName; | 289 | return baseName; |
| 291 | } | 290 | } |
| 292 | - | ||
| 293 | } | 291 | } |
| @@ -13,7 +13,7 @@ public class SqlUtil | @@ -13,7 +13,7 @@ public class SqlUtil | ||
| 13 | /** | 13 | /** |
| 14 | * 定义常用的 sql关键字 | 14 | * 定义常用的 sql关键字 |
| 15 | */ | 15 | */ |
| 16 | - public static String SQL_REGEX = "select |insert |delete |update |drop |count |exec |chr |mid |master |truncate |char |and |declare "; | 16 | + public static String SQL_REGEX = "and |extractvalue|updatexml|exec |insert |select |delete |update |drop |count |chr |mid |master |truncate |char |declare |or |+|user()"; |
| 17 | 17 | ||
| 18 | /** | 18 | /** |
| 19 | * 仅支持字母、数字、下划线、空格、逗号、小数点(支持多个字段排序) | 19 | * 仅支持字母、数字、下划线、空格、逗号、小数点(支持多个字段排序) |
-
请 注册 或 登录 后发表评论