This commit is contained in:
2025-12-12 20:19:29 +09:00
parent 47cf4f9f54
commit e648d83d08

View File

@@ -178,7 +178,6 @@ function assert_unless_success(Result $assertion, Throwable|string|null $descrip
return false;
}
if (AUTH_ENABLED) {
function getcookie(string $name): string|null {
return $_COOKIE[$name] ?? null;
}
@@ -219,7 +218,6 @@ if (AUTH_ENABLED) {
function verify_csrf_token(string $token): bool {
return null !== getcookie('csrf_token') && hash_equals(getcookie('csrf_token'), $token);
}
}
function count_special_chars(string $str): int {
$count = 0;