Don't allow non-GET requests in demo mode

remotes/remote_mirror_8/master 3.1.0
Mike Koch hace 7 años
padre 991c5cb87c
commit e8c029186e

@ -16,6 +16,11 @@ function handle404() {
}
function before() {
if (defined('HESK_DEMO') && $_SERVER['REQUEST_METHOD'] !== 'GET') {
print_error('Demo Mode', 'Only read-only commands are available in demo mode!', null, 401);
die();
}
$internalUse = \BusinessLogic\Helpers::getHeader('X-INTERNAL-CALL');
if ($internalUse === 'true') {

Cargando…
Cancelar
Guardar