Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Percent-encode a clone url in its href
An href carried git://example.org/dépôt.git as it was, and the space of "with space" too, neither of which a url may hold. html_url_path would also encode the plus of git+ssh, which breaks the scheme, and the percent of an escape the url was written with, so a whole url gets a helper that encodes only the bytes RFC 3986 allows nowhere.
-rw-r--r--source/html.c17
-rw-r--r--source/html.h7
-rw-r--r--source/ui-shared.c4
-rwxr-xr-xtests/t0102-summary.sh36
4 files changed, 61 insertions, 3 deletions