diff options
author | Lars Hjemli <hjemli@gmail.com> | 2007-05-20 22:09:55 +0200 |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-05-20 22:09:55 +0200 |
commit | dc3ac3f76077c5d612d42e8beb4878e43acfc58a (patch) | |
tree | dfb996c0ce9833841578e1f0accbb5a387c01237 /ui-shared.c | |
parent | Merge branch 'index-header' (diff) | |
parent | Don't be fooled by trailing '/' in url-parameter (diff) | |
download | cgit-pink-dc3ac3f76077c5d612d42e8beb4878e43acfc58a.tar.gz cgit-pink-dc3ac3f76077c5d612d42e8beb4878e43acfc58a.zip |
Merge branch 'virtual-url'
* virtual-url: Don't be fooled by trailing '/' in url-parameter cache_safe_filename() needs more buffers Enable url=value querystring parameter Add lookup-function for valid repo commands Move cgit_get_repoinfo into shared.c
Diffstat (limited to '')
-rw-r--r-- | ui-shared.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c index 6211056..c7fbc5e 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -68,7 +68,10 @@ char *cgit_pageurl(const char *reponame, const char *pagename, return fmt("%s/%s/%s/", cgit_virtual_root, reponame, pagename); } else { - return fmt("?r=%s&p=%s&%s", reponame, pagename, query); + if (query) + return fmt("?r=%s&p=%s&%s", reponame, pagename, query); + else + return fmt("?r=%s&p=%s", reponame, pagename); } } |