List for cgit developers and users
 help / color / mirror / Atom feed
* Atom feed of package repo have non-escaped href
@ 2017-01-04  6:00 nodivbyzero
  2017-01-04  9:21 ` john
  0 siblings, 1 reply; 2+ messages in thread
From: nodivbyzero @ 2017-01-04  6:00 UTC (permalink / raw)


Hey guys,

I'm investigating issue in Arch Aurweb
https://bugs.archlinux.org/task/51968?project=2

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?

Thanks


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Atom feed of package repo have non-escaped href
  2017-01-04  6:00 Atom feed of package repo have non-escaped href nodivbyzero
@ 2017-01-04  9:21 ` john
  0 siblings, 0 replies; 2+ messages in thread
From: john @ 2017-01-04  9:21 UTC (permalink / raw)


On Tue, Jan 03, 2017 at 10:00:20PM -0800, Nodiv Byzero wrote:
> I'm investigating issue in Arch Aurweb
> https://bugs.archlinux.org/task/51968?project=2
> 
> 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
--- a/ui-atom.c
+++ b/ui-atom.c
@@ -52,7 +52,7 @@ static void add_entry(struct commit *commit, const char *host)
 		html_attr(pageurl);
 		if (ctx.cfg.virtual_root)
 			delim = '?';
-		htmlf("%cid=%s", delim, hex);
+		html_attrf("%cid=%s", delim, hex);
 		html("'/>\n");
 		free(pageurl);
 	}


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-04  9:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-04  6:00 Atom feed of package repo have non-escaped href nodivbyzero
2017-01-04  9:21 ` john

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).