From 442c262539c77ac3cee6fbd62e5f20b305aa992e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Mon, 27 Jul 2026 01:54:34 +0400 Subject: [PATCH] fix: load markdown in direct.php, allow video-channels, guard modals --- direct.php | 19 ++++--- includes/config.php | 84 ++++++++++++++++------------- tests/e2e/test_video_page.py | 25 +++++++++ tests/php/security-test.php | 100 +++++++++++++++++++++++++++++++++++ video.php | 82 ++++++++++++++-------------- 5 files changed, 227 insertions(+), 83 deletions(-) diff --git a/direct.php b/direct.php index c63a7ad..9c164d4 100644 --- a/direct.php +++ b/direct.php @@ -9,6 +9,8 @@ if (defined('COUNTDOWN_ENABLED') && COUNTDOWN_ENABLED === true) { exit; } +// Inclure le convertisseur Markdown +require_once 'includes/lib/markdown.php'; // Inclure les fonctions de données structurées require_once 'includes/structured-data.php'; // Appliquer les en-têtes de sécurité @@ -126,9 +128,9 @@ $liveStream = getLiveStream(); EN DIRECT
- ' readonly> + " frameborder="0" allowfullscreen>' readonly> @@ -580,15 +581,15 @@ if (empty($videoData) || isset($videoData['error'])) { if (showMoreBtn) { showMoreBtn.addEventListener('click', function() { - document.querySelector('.truncated-description').style.display = 'none'; - document.querySelector('.full-description').style.display = 'block'; + document.querySelector('.truncated-description').classList.add('is-hidden'); + document.querySelector('.full-description').classList.remove('is-hidden'); }); } if (showLessBtn) { showLessBtn.addEventListener('click', function() { - document.querySelector('.full-description').style.display = 'none'; - document.querySelector('.truncated-description').style.display = 'block'; + document.querySelector('.full-description').classList.add('is-hidden'); + document.querySelector('.truncated-description').classList.remove('is-hidden'); }); } @@ -672,6 +673,7 @@ if (empty($videoData) || isset($videoData['error'])) { } }); +