Explorar el Código

!1 完善防护机制,修复了代码中存在的安全漏洞

Merge pull request !1 from 再遇雌鹿/master
tags/6.2.5
DedeBIZ Gitee hace 1 año
padre
commit
0141bd7645
No se encontró ninguna clave conocida en la base de datos para esta firma ID de clave GPG: 173E9B9CA92EEF8F
Se han modificado 2 ficheros con 2 adiciones y 0 borrados
  1. +1
    -0
      src/admin/sys_data_done.php
  2. +1
    -0
      src/apps/mytag_js.php

+ 1
- 0
src/admin/sys_data_done.php Ver fichero

@@ -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()) {


+ 1
- 0
src/apps/mytag_js.php Ver fichero

@@ -36,6 +36,7 @@ if (isset($nocache) || !file_exists($cacheFile) || time() - filemtime($cacheFile
$myvalues = str_replace('"', '\"', $myvalues);
$myvalues = str_replace("\r", "\\r", $myvalues);
$myvalues = str_replace("\n", "\\n", $myvalues);
$myvalues = str_replace("<?", "", $myvalues);
$myvalues = "<!--\r\ndocument.write(\"{$myvalues}\");\r\n-->\r\n";
file_put_contents($cacheFile, $myvalues);
}


Cargando…
Cancelar
Guardar