From 5df8556284cc5238516e5134ec107d97c3a1fb70 Mon Sep 17 00:00:00 2001 From: Armin Weigl Date: Sat, 13 Mar 2021 20:30:09 +0100 Subject: [PATCH] Fix /~o/r/log 500ing if default branch is invalid utf-8 --- gitsrht/templates/log.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitsrht/templates/log.html b/gitsrht/templates/log.html index 6d34db2..11ec243 100644 --- a/gitsrht/templates/log.html +++ b/gitsrht/templates/log.html @@ -1,12 +1,12 @@ {% extends "repo.html" %} {% import "utils.html" as utils with context %} {% block title %} -{{repo.owner.canonical_name}}/{{repo.name}}: {% if path != [''] %}{{path_join(*path)}} {% endif %}{{ ref.decode() }} - {{cfg("sr.ht", "site-name")}} git +{{repo.owner.canonical_name}}/{{repo.name}}: {% if path != [''] %}{{path_join(*path)}} {% endif %}{{ ref.decode("utf-8", "replace") }} - {{cfg("sr.ht", "site-name")}} git {% endblock %} {% block head %} {% endblock %} -- 2.38.4