Diff options
Diffstat (limited to 'source/ui-shared.c')
| -rw-r--r-- | source/ui-shared.c | 5 |
1 file changed, 4 insertions, 1 deletion
diff --git a/source/ui-shared.c b/source/ui-shared.c index d2eec25..c64cd9a 100644 --- a/source/ui-shared.c +++ b/source/ui-shared.c @@ -1210,7 +1210,10 @@ static void emit_module_link(const char *tmpl, const char **args, int nargs) strbuf_addch(&sb, '%'); } } - html_attr(sb.buf); + // The path comes from the tree as it is, and a space or a byte past + // ASCII in it would break the href, so the url is encoded as a clone + // url is. + html_attr_url(sb.buf); strbuf_release(&sb); } |
