Refactoring : sécurité (XSS), découpage en modules inc/* et js/admin/*, IDs résolus par slug, perf (caches, cron Gravatar, assets auto-hébergés), tests

This commit is contained in:
2026-06-10 21:30:25 +02:00
parent e6b73df516
commit 9280c3b9ce
44 changed files with 3209 additions and 2907 deletions

View File

@@ -22,13 +22,13 @@
{% if author.avatar_url %}
<div class="author-header">
<div class="author-avatar">
<img src="{{ author.avatar_url }}" alt="{{ author.display_name }}">
<img src="{{ author.avatar_url|esc_url }}" alt="{{ author.display_name|esc_attr }}">
</div>
<div class="author-identity">
<h2><p>{{ author.display_name }}</p></h2>
<h2><p>{{ author.display_name|esc_html }}</p></h2>
{% if author.role_label or author.role_complement or author.affiliation %}
<p class="author-role">
{{ author.role_label }}{% if author.role_complement %} {{ author.role_complement }}{% if author.affiliation %},{% endif %}{% endif %}{% if author.affiliation %} {{ author.affiliation }}{% endif %}
{{ author.role_label|esc_html }}{% if author.role_complement %} {{ author.role_complement|esc_html }}{% if author.affiliation %},{% endif %}{% endif %}{% if author.affiliation %} {{ author.affiliation|esc_html }}{% endif %}
</p>
{% endif %}
<p class="maj">{{ current_language == 'en' ? 'Updated on' : 'Mis à jour le' }} {{ author.user_since }}</p>
@@ -63,10 +63,10 @@
{% if not author.avatar_url %}
<div class="author-identity">
<h2><p>{{ author.display_name }}</p></h2>
<h2><p>{{ author.display_name|esc_html }}</p></h2>
{% if author.role_label or author.role_complement or author.affiliation %}
<p class="author-role">
{{ author.role_label }}{% if author.role_complement %} {{ author.role_complement }}{% if author.affiliation %},{% endif %}{% endif %}{% if author.affiliation %} {{ author.affiliation }}{% endif %}
{{ author.role_label|esc_html }}{% if author.role_complement %} {{ author.role_complement|esc_html }}{% if author.affiliation %},{% endif %}{% endif %}{% if author.affiliation %} {{ author.affiliation|esc_html }}{% endif %}
</p>
{% endif %}
<p class="maj">{{ current_language == 'en' ? 'Updated on' : 'Mis à jour le' }} {{ author.user_since }}</p>