diff options
| Commit | e154edd8078020d6eba41b448afade0a68617f35 (patch) | |
|---|---|---|
| Author | 2008-08-09 21:11:41 +0200 | |
| Committer | 2008-09-15 23:00:30 +0200 | |
| Files | 9fdde0c3944e327ed2694464a4c6808373ee09b7 /cgit.h | |
| cgit-e154edd8078020d6eba41b448afade0a68617f35.tar cgit-e154edd8078020d6eba41b448afade0a68617f35.tar.gz cgit-e154edd8078020d6eba41b448afade0a68617f35.zip | ||
| Parent | a30453a5d3f6db4d6e055da2112343e054e7e7d5 (diff) | |
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>
1 files changed, 1 insertions, 0 deletions
| -rw-r--r-- | cgit.h | 1 |
@@ -118,6 +118,7 @@ struct cgit_query { char *path; char *name; char *mimetype; + char *url; int ofs; }; |
