Explorar el Código

修复CSRF保护措施绕过漏洞

master
tianya hace 4 años
padre
commit
de68bca7d1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      src/dede/config.php

+ 1
- 1
src/dede/config.php Ver fichero

@@ -64,7 +64,7 @@ function csrf_check()
{
global $token;

if(!isset($token) || strcasecmp($token, $_SESSION['token']) != 0){
if(!isset($token) || strcasecmp($token, $_SESSION['token']) !== 0){
echo '<a href="http://bbs.dedecms.com/907721.html">DedeCMS:CSRF Token Check Failed!</a>';
exit;
}


Cargando…
Cancelar
Guardar