From 60be1e51937be1c9cc6ac37c7ade61648edaaa0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Gastinel?= <264859180+gastinelt@users.noreply.github.com> Date: Thu, 5 Nov 2026 12:07:18 +0100 Subject: [PATCH] =?UTF-8?q?vercors.me=20:=20lien=20=C2=AB=20=C3=80=20la=20?= =?UTF-8?q?une=20=C2=BB=20limit=C3=A9=20aux=20adresses=20/forum/=20(revue?= =?UTF-8?q?=20de=20s=C3=A9curit=C3=A9)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- maquettes/accueil-carte/index.html | 2 +- maquettes/accueil-carte/modele.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/maquettes/accueil-carte/index.html b/maquettes/accueil-carte/index.html index e719d71..7d14253 100644 --- a/maquettes/accueil-carte/index.html +++ b/maquettes/accueil-carte/index.html @@ -1916,7 +1916,7 @@ btnLecture.addEventListener('click', () => { }); (FORUM_OUVERT ? fetch('data/forum-une.json?' + Math.floor(Date.now() / 300000)).then(r => r.ok ? r.json() : null).then(u => { if (!u || !u.titre) return; - document.querySelectorAll('[data-une]').forEach(a => { a.textContent = u.titre; if (u.url) a.href = u.url; }); + document.querySelectorAll('[data-une]').forEach(a => { a.textContent = u.titre; if (typeof u.url === 'string' && u.url.startsWith('/forum/') && !u.url.startsWith('//')) a.href = u.url; }); document.querySelectorAll('[data-auteur]').forEach(e => { e.textContent = u.auteur ? 'par ' + u.auteur : ''; }); if (u.n) document.querySelectorAll('[data-n]').forEach(e => { e.textContent = u.n + (u.n > 1 ? ' sujets' : ' sujet') + ' cette semaine'; }); }).catch(() => {}) : 0); diff --git a/maquettes/accueil-carte/modele.html b/maquettes/accueil-carte/modele.html index 9bf6c2e..ce555ab 100644 --- a/maquettes/accueil-carte/modele.html +++ b/maquettes/accueil-carte/modele.html @@ -1916,7 +1916,7 @@ btnLecture.addEventListener('click', () => { }); (FORUM_OUVERT ? fetch('data/forum-une.json?' + Math.floor(Date.now() / 300000)).then(r => r.ok ? r.json() : null).then(u => { if (!u || !u.titre) return; - document.querySelectorAll('[data-une]').forEach(a => { a.textContent = u.titre; if (u.url) a.href = u.url; }); + document.querySelectorAll('[data-une]').forEach(a => { a.textContent = u.titre; if (typeof u.url === 'string' && u.url.startsWith('/forum/') && !u.url.startsWith('//')) a.href = u.url; }); document.querySelectorAll('[data-auteur]').forEach(e => { e.textContent = u.auteur ? 'par ' + u.auteur : ''; }); if (u.n) document.querySelectorAll('[data-n]').forEach(e => { e.textContent = u.n + (u.n > 1 ? ' sujets' : ' sujet') + ' cette semaine'; }); }).catch(() => {}) : 0);