mirror of
https://git.zx2c4.com/cgit
synced 2025-07-15 04:34:33 +02:00
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:
parent
a30453a5d3
commit
e154edd807
2 changed files with 28 additions and 0 deletions
1
cgit.h
1
cgit.h
|
@ -118,6 +118,7 @@ struct cgit_query {
|
|||
char *path;
|
||||
char *name;
|
||||
char *mimetype;
|
||||
char *url;
|
||||
int ofs;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue