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>
此提交包含在:
Lars Hjemli
2008-08-09 21:11:41 +02:00
父節點 a30453a5d3
當前提交 e154edd807
共有 2 個檔案被更改,包括 28 行新增0 行删除

1
cgit.h
查看文件

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