merge 1.9

This commit is contained in:
xiaomlove
2025-12-29 00:02:46 +07:00
11 changed files with 123 additions and 32 deletions

View File

@@ -1668,6 +1668,14 @@ JS;
\Nexus\Nexus::js($js, 'footer', false);
}
function nexus_escape($data): array|string
{
if (is_array($data)) {
return array_map('nexus_escape', $data);
}
return htmlspecialchars($data, ENT_QUOTES, 'UTF-8');
}
function is_fpm_mode(): bool
{
return php_sapi_name() === 'fpm-fcgi';