From 18001c3f79751528a1b27dca14089e9b0fa540d1 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 31 Oct 2026 13:15:01 -0700 Subject: Set the virtual root from SCRIPT_NAME up front The script name always holds a value, so the fallback after parsing fired whenever cgitrc left virtual-root unset. The root is now set with the other defaults, for cgitrc to replace. A die while cgitrc is read is the one change, and its page now links the root with the trailing slash every other page has. The environment's copy of the script name only fed this. --- source/cgit.h | 1 - 1 file changed, 1 deletion(-) (limited to 'source/cgit.h') diff --git a/source/cgit.h b/source/cgit.h index 5e17a3e..a089633 100644 --- a/source/cgit.h +++ b/source/cgit.h @@ -303,7 +303,6 @@ struct cgit_environment { const char *path_info; const char *query_string; const char *request_method; - const char *script_name; const char *server_name; const char *server_port; const char *http_cookie; -- cgit 2.11.1