diff options
author | Runxi Yu <me@runxiyu.org> | 2025-03-22 11:44:59 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2025-03-22 11:44:59 +0800 |
commit | c7440c2c3366e516ef9b0f4c34093e0c7f5c23d4 (patch) | |
tree | 4695fba3ffb65a2abbadda90bac2c7511ffcaaf7 /templates | |
parent | Fix HTTPS cloning (diff) | |
download | forge-c7440c2c3366e516ef9b0f4c34093e0c7f5c23d4.tar.gz forge-c7440c2c3366e516ef9b0f4c34093e0c7f5c23d4.tar.zst forge-c7440c2c3366e516ef9b0f4c34093e0c7f5c23d4.zip |
Fix tree/raw redirection and disallow slashes in their path segments
Diffstat (limited to 'templates')
-rw-r--r-- | templates/400.tmpl | 25 |
1 files changed, 25 insertions, 0 deletions
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 <https://runxiyu.org> +*/}} +{{- define "400" -}} +<!DOCTYPE html> +<html lang="en"> + <head> + {{- template "head_common" . -}} + <title>400 Bad Request – {{ .global.forge_title }}</title> + </head> + <body class="400"> + {{- template "header" . -}} + <div class="padding-wrapper complete-error-page"> + <h1>400 Bad Request</h1> + <p>{{- .bad_request_msg -}}</p> + <hr /> + <address>Lindenii Forge</address> + </div> + <footer> + {{- template "footer" . -}} + </footer> + </body> +</html> +{{- end -}} |