From 77495faae4235c0d9da061d0cce76f23c1ecc431 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:18:53 -0700 Subject: Drop the query-string form of every link cgit falls back to SCRIPT_NAME for virtual_root whenever cgitrc leaves it out, so the ?url= and ?r= forms only ever reached an error page raised while cgitrc was still being read. The page argument of cgit_add_hidden_formfields fed only the url field, so it is unused until its callers stop passing it. --- source/ui-shared.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'source/ui-shared.h') diff --git a/source/ui-shared.h b/source/ui-shared.h index 9abd4c0..59751ae 100644 --- a/source/ui-shared.h +++ b/source/ui-shared.h @@ -3,9 +3,7 @@ * handler renders its own body and calls in here for all that surrounds it, * which is the HTTP headers, the document head and footer, the header block * with its tabs and search form, the error page, and an anchor to any other - * cgit page. Whether a site addresses a request as a path below a virtual root - * or as a query string is settled behind these calls, so that nothing else has - * to know which of the two it is looking at. + * cgit page. */ #ifndef CGIT_UI_SHARED_H -- cgit