From e154edd8078020d6eba41b448afade0a68617f35 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sat, 9 Aug 2008 21:11:41 +0200 Subject: Teach cgit how to use PATH_INFO This commit makes cgit use the cgi variables SCRIPT_NAME and PATH_INFO when virtual-root is unspecified in cgitrc and no url-parameter is specified on the querystring. This has two nice effects: * Virtual urls works out of the box, no more need for rewrite-rules in httpd. * Virtual urls with special querystring characters are handled correctly. Signed-off-by: Lars Hjemli --- cgit.h | 1 + 1 file changed, 1 insertion(+) (limited to 'cgit.h') diff --git a/cgit.h b/cgit.h index 08fd95a..d07185c 100644 --- a/cgit.h +++ b/cgit.h @@ -118,6 +118,7 @@ struct cgit_query { char *path; char *name; char *mimetype; + char *url; int ofs; }; -- cgit v1.2.3-59-g8ed1b