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 <hjemli@gmail.com>
This commit is contained in:
Lars Hjemli
2008-08-09 21:11:41 +02:00
parent a30453a5d3
commit e154edd807
2 changed files with 28 additions and 0 deletions

1
cgit.h
View File

@ -118,6 +118,7 @@ struct cgit_query {
char *path;
char *name;
char *mimetype;
char *url;
int ofs;
};