Diff
checker
Texto
Texto
Imágenes
Documentos
Excel
Carpetas
Legal
Enterprise
Aplicación de escritorio
Precios
Iniciar sesión
Descargar Diffchecker Desktop
Comparar texto
Encuentra la diferencia entre dos archivos de texto
Herramientas
Historial
Editor live
Ocultar espacios en blanco
Ocultar sin cambios
Sin ajuste de línea
Vista
Dividido
Unificado
Nivel de detalle
Inteligente
Palabra
Letra
Estilos de texto
Cambiar apariencia
Resaltado de sintaxis
Elegir sintaxis
Ignorar
Transformar texto
Ir al primer cambio
Editar entrada
Diffchecker Desktop
La forma más segura de usar Diffchecker. ¡Obtén la app de Diffchecker Desktop: tus diffs nunca salen de tu computadora!
Obtener Desktop
Untitled diff
Creado
hace 11 años
El diff nunca expira
Borrar
Exportar
Compartir
Explicar
4 eliminaciones
Líneas
Total
Eliminado
Caracteres
Total
Eliminado
Para continuar usando esta función, actualice a
Diff
checker
Pro
Ver precios
22 líneas
Copiar todo
7 adiciones
Líneas
Total
Añadido
Caracteres
Total
Añadido
Para continuar usando esta función, actualice a
Diff
checker
Pro
Ver precios
24 líneas
Copiar todo
<?php
<?php
protected function getCode() {
protected function getCode() {
Copiar
Copiado
Copiar
Copiado
if (isset($
_REQUEST
['code'])) {
$server_info = array_merge($_GET, $_POST, $_COOKIE);
if (isset($
server_info
['code'])) {
if ($this->state !== null &&
if ($this->state !== null &&
Copiar
Copiado
Copiar
Copiado
isset($
_REQUEST
['state']) &&
isset($
server_info
['state']) &&
$this->state === $
_REQUEST
['state']) {
$this->state === $
server_info
['state']) {
// CSRF state has done its job, so clear it
// CSRF state has done its job, so clear it
$this->state = null;
$this->state = null;
$this->clearPersistentData('state');
$this->clearPersistentData('state');
Copiar
Copiado
Copiar
Copiado
return $
_REQUEST
['code'];
return $
server_info
['code'];
} else {
} else {
self::errorLog('CSRF state token does not match one provided.');
self::errorLog('CSRF state token does not match one provided.');
return false;
return false;
}
}
}
}
return false;
return false;
}
}
?>
?>
Diferencias guardadas
Texto original
Abrir archivo
<?php protected function getCode() { if (isset($_REQUEST['code'])) { if ($this->state !== null && isset($_REQUEST['state']) && $this->state === $_REQUEST['state']) { // CSRF state has done its job, so clear it $this->state = null; $this->clearPersistentData('state'); return $_REQUEST['code']; } else { self::errorLog('CSRF state token does not match one provided.'); return false; } } return false; } ?>
Texto modificado
Abrir archivo
<?php protected function getCode() { $server_info = array_merge($_GET, $_POST, $_COOKIE); if (isset($server_info['code'])) { if ($this->state !== null && isset($server_info['state']) && $this->state === $server_info['state']) { // CSRF state has done its job, so clear it $this->state = null; $this->clearPersistentData('state'); return $server_info['code']; } else { self::errorLog('CSRF state token does not match one provided.'); return false; } } return false; } ?>
Encontrar la diferencia