From fb0fce71d032cb39ffec3dfbe6ea8537b452d723 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 30 Oct 2026 14:52:37 -0700 Subject: Drop the query-string form of every link The virtual root is set from SCRIPT_NAME before cgitrc is read, so it always holds a value and the ?url= and ?r= forms were never reached. 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 2.12.1