1
0

Make git_pageurl handle NULL querystrings

This is suddenly useful after the repo.defbranch-related changes.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Este cometimento está contido em:
Lars Hjemli 2007-05-16 02:06:28 +02:00
ascendente 97de8f0554
cometimento 723469962b

Ver ficheiro

@ -61,8 +61,12 @@ char *cgit_pageurl(const char *reponame, const char *pagename,
const char *query)
{
if (cgit_virtual_root) {
return fmt("%s/%s/%s/?%s", cgit_virtual_root, reponame,
pagename, query);
if (query)
return fmt("%s/%s/%s/?%s", cgit_virtual_root, reponame,
pagename, query);
else
return fmt("%s/%s/%s/", cgit_virtual_root, reponame,
pagename);
} else {
return fmt("?r=%s&p=%s&%s", reponame, pagename, query);
}