use Friendica\Core\L10n;
use Friendica\Core\Logger;
-use Friendica\Core\System;
/**
* All modules in Friendica should extend BaseModule, although not all modules
$a = \get_app();
$x = explode('.', $hash);
- if (time() > (IntVal($x[0]) + $max_livetime)) {
+ if (time() > (intval($x[0]) + $max_livetime)) {
return false;
}
Logger::log('checkFormSecurityToken failed: user ' . $a->user['guid'] . ' - form element ' . $typename);
Logger::log('checkFormSecurityToken failed: _REQUEST data: ' . print_r($_REQUEST, true), Logger::DATA);
- System::httpExit(403);
+ throw new \Friendica\Network\HTTPException\ForbiddenException();
}
}
}