List for cgit developers and users
 help / color / Atom feed
* [PATCH] html: fully escape links on index page descriptions
@ 2019-02-18 20:14 aklhfex
  0 siblings, 0 replies; only message in thread
From: aklhfex @ 2019-02-18 20:14 UTC (permalink / raw)


A space in repo.url was being converted to %20 in the link on repository
name but not in the link on repository description.

Signed-off-by: Chris Mayo <aklhfex at gmail.com>
---
 html.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/html.c b/html.c
index 7f81965..f731c72 100644
--- a/html.c
+++ b/html.c
@@ -288,7 +288,7 @@ void html_intoption(int value, const char *text, int selected_value)
 void html_link_open(const char *url, const char *title, const char *class)
 {
 	html("<a href='");
-	html_attr(url);
+	html_url_path(url);
 	if (title) {
 		html("' title='");
 		html_attr(title);
-- 
2.20.1



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-02-18 20:14 [PATCH] html: fully escape links on index page descriptions aklhfex

List for cgit developers and users

Archives are clonable: git clone --mirror http://inbox.vuxu.org/cgit

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.cgit


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git