Atom feed of package repo have non-escaped href
john at keeping.me.uk
Wed Jan 4 10:21:14 CET 2017
On Tue, Jan 03, 2017 at 10:00:20PM -0800, Nodiv Byzero wrote:
> I'm investigating issue in Arch Aurweb
> where feed is broken, because href contains an & not "&"
> Check this out: https://aur.archlinux.org/cgit/aur.git/atom/?h=pacaur
> Could you confirm what is cgit issue?
Yes, it looks like this has been broken since atom support was added to
CGit. Can you try the patch below and see if it fixes the issue?
-- >8 --
diff --git a/ui-atom.c b/ui-atom.c
index 7c17d6a..443cc98 100644
@@ -52,7 +52,7 @@ static void add_entry(struct commit *commit, const char *host)
delim = '?';
- htmlf("%cid=%s", delim, hex);
+ html_attrf("%cid=%s", delim, hex);
More information about the CGit