From 87b6fef1cdaa9864d63ceb281a0f3ec8cb1c57f5 Mon Sep 17 00:00:00 2001 From: Davi Torres Date: Mon, 22 Jun 2026 11:03:44 -0400 Subject: [PATCH] Prevent CSRF by using htmlspecialchars on header and footer. --- lib/template/footer.php | 2 +- lib/template/header.php | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/template/footer.php b/lib/template/footer.php index 64132c7..fdf488a 100644 --- a/lib/template/footer.php +++ b/lib/template/footer.php @@ -11,7 +11,7 @@ if (false === empty($cfg['installation_done'])) { if(false === empty($cfg['organisation'])) { echo ' | '; - echo ' ' . t('DESIGNED') . ' ' . $cfg['organisation']; + echo ' ' . t('DESIGNED') . ' ' . jirafeau_escape($cfg['organisation']); } echo ' | '; diff --git a/lib/template/header.php b/lib/template/header.php index 93f7e18..c1a94de 100644 --- a/lib/template/header.php +++ b/lib/template/header.php @@ -6,10 +6,10 @@ header('x-ua-compatible: ie=edge'); - <?php echo (true === empty($cfg['title'])) ? t('JI_WEB_RE') : $cfg['title']; ?> + <?php echo (true === empty($cfg['title'])) ? t('JI_WEB_RE') : jirafeau_escape($cfg['title']); ?> - - + + @@ -17,6 +17,6 @@ header('x-ua-compatible: ie=edge');

- +

-- 2.43.0