From 1a63cfcc3d83919e790e7e279eb35fc75adb0e3c Mon Sep 17 00:00:00 2001 From: Ondrej Jirman Date: Sat, 26 May 2007 01:15:10 +0200 Subject: [PATCH] Use & instead of & in URLs. Signed-off-by: Lars Hjemli --- ui-commit.c | 8 ++++---- ui-log.c | 4 ++-- ui-shared.c | 4 ++-- ui-summary.c | 2 +- ui-tree.c | 6 +++--- ui-view.c | 2 +- 6 files changed, 13 insertions(+), 13 deletions(-) diff --git a/ui-commit.c b/ui-commit.c index 6b135aa..1d12bbb 100644 --- a/ui-commit.c +++ b/ui-commit.c @@ -75,7 +75,7 @@ void print_fileinfo(struct fileinfo *info) html("]"); } htmlf("", class); - query = fmt("id=%s&id2=%s&path=%s", sha1_to_hex(info->old_sha1), + query = fmt("id=%s&id2=%s&path=%s", sha1_to_hex(info->old_sha1), sha1_to_hex(info->new_sha1), info->new_path); html_link_open(cgit_pageurl(cgit_query_repo, "diff", query), NULL, NULL); @@ -182,7 +182,7 @@ void cgit_print_commit(const char *hex) cgit_print_date(info->committer_date, FMT_LONGDATE); html("\n"); html("tree%s\n", sha1_to_hex(commit->tree->object.sha1)); @@ -201,7 +201,7 @@ void cgit_print_commit(const char *hex) html_attr(cgit_pageurl(cgit_query_repo, "commit", query)); htmlf("'>%s (diff)"); @@ -210,7 +210,7 @@ void cgit_print_commit(const char *hex) htmlf("download%s", filename); } html("\n"); diff --git a/ui-log.c b/ui-log.c index c80fd73..75bbbe4 100644 --- a/ui-log.c +++ b/ui-log.c @@ -114,14 +114,14 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *path) if (ofs > 0) { html(" [prev] "); } if ((commit = get_revision(&rev)) != NULL) { html(" [next] "); } html(""); diff --git a/ui-shared.c b/ui-shared.c index c8c1c21..aba93e8 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -69,9 +69,9 @@ char *cgit_pageurl(const char *reponame, const char *pagename, pagename); } else { if (query) - return fmt("?r=%s&p=%s&%s", reponame, pagename, query); + return fmt("?r=%s&p=%s&%s", reponame, pagename, query); else - return fmt("?r=%s&p=%s", reponame, pagename); + return fmt("?r=%s&p=%s", reponame, pagename); } } diff --git a/ui-summary.c b/ui-summary.c index 18608b8..15e8aec 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -159,7 +159,7 @@ static int cgit_print_archive_cb(const char *refname, const unsigned char *sha1, } html(""); url = cgit_pageurl(cgit_query_repo, "blob", - fmt("id=%s&path=%s", sha1_to_hex(fileid), + fmt("id=%s&path=%s", sha1_to_hex(fileid), buf)); html_link_open(url, NULL, NULL); html_txt(buf); diff --git a/ui-tree.c b/ui-tree.c index 006ca47..cb57d8d 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -37,7 +37,7 @@ static int print_entry(const unsigned char *sha1, const char *base, } else if (S_ISDIR(mode)) { html("class='ls-dir'>download");