about summary refs log tree commit diff
path: root/ui-shared.c
diff options
context:
space:
mode:
authorOndrej Jirman <ondrej.jirman@zonio.net>2007-05-26 01:15:10 +0200
committerLars Hjemli <hjemli@gmail.com>2007-05-31 10:18:38 +0200
commit1a63cfcc3d83919e790e7e279eb35fc75adb0e3c (patch)
treea2c613c6ae642dd6a4015142ccf04ed7c5629b8f /ui-shared.c
parentFixed unexpected tags in html output. (diff)
downloadcgit-pink-1a63cfcc3d83919e790e7e279eb35fc75adb0e3c.tar.gz
cgit-pink-1a63cfcc3d83919e790e7e279eb35fc75adb0e3c.zip
Use &amp; instead of & in URLs.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
-rw-r--r--ui-shared.c4
1 files changed, 2 insertions, 2 deletions
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&amp;p=%s&amp;%s", reponame, pagename, query);
 		else
-			return fmt("?r=%s&p=%s", reponame, pagename);
+			return fmt("?r=%s&amp;p=%s", reponame, pagename);
 	}
 }