about summary refs log tree commit diff
path: root/tests/t0107-snapshot.sh
diff options
context:
space:
mode:
authorMark Lodato <lodatom@gmail.com>2010-02-09 10:12:43 -0500
committerMark Lodato <lodatom@gmail.com>2010-02-09 10:12:43 -0500
commita2c6355f9fdede78ce46aeee39ef649637aaadf9 (patch)
tree4ed595f688691e7a35c5684ca59164bcc777b74c /tests/t0107-snapshot.sh
parenthtml: make all strings 'const char *' (diff)
downloadcgit-pink-a2c6355f9fdede78ce46aeee39ef649637aaadf9.tar.gz
cgit-pink-a2c6355f9fdede78ce46aeee39ef649637aaadf9.zip
html: properly percent-escape URLs
The only valid characters for a URL are unreserved characters
a-zA-Z0-9_-.~ and the reserved characters !*'();:@&=+$,/?%#[] , as per
RFC 3986.  Everything else must be escaped.  Additionally, the # and
? always have special meaning, and the &, =, and + have special meaning
in a query string, so they too must be escaped.  To make this easier,
a table of escapes is now used so that we do not have to call fmt() for
each character; if the entry is 0, no escaping is needed.

Signed-off-by: Mark Lodato <lodatom@gmail.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
ass='logheader'>2020-02-11Add margin to Bl-bullet itemsJune McEnroe 2020-02-10Match URLs inside parens or with paired parens insideJune McEnroe 2020-02-10Duplicate effective URL before passing it back to curlJune McEnroe Apparently sometimes it didn't like receiving its own internal storage to parse again. Understandable. 2020-02-09Add To Be Taught, If FortunateJune McEnroe 2020-02-04Add The Future of Another TimelineJune McEnroe Wow. One of the best I've read. 2020-01-31Reorganize the Makefile for the umpteenth timeJune McEnroe Broke out LDLIBS for each bin, and made everything more uniform. 2020-01-28Change scout sensitivity to 1.4June McEnroe idk it seems to work. 2020-01-28Import shows.txtJune McEnroe