Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Keep the query string across the about redirects
The hop to the trailing-slash form of the about page, and the hop back to the summary of a repository without a readme, were built from the path alone, so a request for the about page of another branch landed on the default one. The query goes into the Location line as the client sent it, with any byte a header cannot carry percent-encoded.
-rw-r--r--source/cmd.c13
-rw-r--r--source/html.c22
-rw-r--r--source/html.h1
-rw-r--r--source/ui-shared.c21
-rw-r--r--source/ui-shared.h10
-rwxr-xr-xtests/t0303-robustness.sh13
6 files changed, 68 insertions, 12 deletions