From c7440c2c3366e516ef9b0f4c34093e0c7f5c23d4 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sat, 22 Mar 2025 11:44:59 +0800 Subject: Fix tree/raw redirection and disallow slashes in their path segments --- templates/400.tmpl | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 templates/400.tmpl (limited to 'templates') diff --git a/templates/400.tmpl b/templates/400.tmpl new file mode 100644 index 0000000..1fcd5d9 --- /dev/null +++ b/templates/400.tmpl @@ -0,0 +1,25 @@ +{{/* + SPDX-License-Identifier: AGPL-3.0-only + SPDX-FileContributor: Runxi Yu +*/}} +{{- define "400" -}} + + + + {{- template "head_common" . -}} + 400 Bad Request – {{ .global.forge_title }} + + + {{- template "header" . -}} +
+

400 Bad Request

+

{{- .bad_request_msg -}}

+
+
Lindenii Forge
+
+ + + +{{- end -}} -- cgit v1.2.3