From 839f6bdc15391ab03e52a516a828b7ea157d724a Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Thu, 29 Oct 2026 18:03:15 +0100 Subject: fix(sender): validate Webmention status URLs Treat status URLs returned by remote endpoints as untrusted input so malformed or non-HTTP schemes cannot be persisted or exposed as clickable links. Preserve successful delivery when a Location header is invalid while rendering legacy unsafe status values as plain text in the admin interface. --- webmentions_ssg/templates/sent_source.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'webmentions_ssg/templates/sent_source.html') diff --git a/webmentions_ssg/templates/sent_source.html b/webmentions_ssg/templates/sent_source.html index e840f8f..8d22068 100644 --- a/webmentions_ssg/templates/sent_source.html +++ b/webmentions_ssg/templates/sent_source.html @@ -154,7 +154,11 @@ SPDX-License-Identifier: BSD-3-Clause {% if webmention.status_url is not none %}
Status: - {{ webmention.status_url }} + {% if webmention.status_url | is_http_url %} + {{ webmention.status_url }} + {% else %} + {{ webmention.status_url }} + {% endif %}
{% endif %} -- cgit v1.3.1