Browse Source

update src/admin/sys_data_done.php.

通过敏感字符过滤,修复了sys_data_done.php中存在的SQL注入漏洞。

Signed-off-by: 再遇雌鹿 <1937635949@qq.com>
tags/6.2.5^2
再遇雌鹿 Gitee 1 year ago
parent
commit
fec34a6ecd
No known key found for this signature in database GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/admin/sys_data_done.php

+ 1
- 0
src/admin/sys_data_done.php View File

@@ -100,6 +100,7 @@ if ($dopost == 'bak') {
$fs = array();
$bakStr = '';
//分析表里的字段信息
$nowtable = str_replace("`", "", $nowtable);
$dsql->GetTableFields($nowtable);
$intable = "INSERT INTO `$nowtable` VALUES(";
while ($r = $dsql->GetFieldObject()) {


Loading…
Cancel
Save