Commits
- Commit:
b18b22548b5f83b9ec2eaf63b161fa5f76febdbc
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: fix memleak in error path
ok stsp@
- Commit:
d5996b9efcd57875669fb0b06006ecf8cf566272
- From:
- Landry Breuil <landry@openbsd.org>
- Date:
add respect_exportok flag, defaulting to off
allows to hide repositories if they have the magic git-daemon-export-ok file
ok op@ tracey@ stsp@
- Commit:
b2e7d31ee036249faf5099d0a548d8e0b1dcc520
- From:
- Landry Breuil <landry@openbsd.org>
- Date:
send a newline first if erroring out in plaintext mode
otherwise, the webserver might complain:
'upstream sent invalid header: "gotwebd\x20..." while reading response header from upstream'
ok stsp@
- Commit:
0e678fc8b5ec094de9fab7b1a3ab6886ecb2c95a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: drop needless NULL check
We can assume that the querystring was initialized when we reach
gotweb_render_header. ok tracey@
- Commit:
8d02314fcaebb323c9ca3b102f8a085d66ea4633
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: percent-encode generated URLs
This adds a new helper function `gotweb_link' that outputs an HTML link
with the parameter correctly escaped.
ok stsp@
- Commit:
f864583e1f5425a3f135ee971b1445b4bc6c8b10
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: add missing closing for div tags_content
reported by the W3C validator.
- Commit:
93c74716961ac29893d89a1d807530c448a168b3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: fix page title
due to an error in the order of the arguments to fcgi_printf that I've
introduced last time I touched gotweb_render_header the title is now
"/" (or SCRIPT_NAME) and one assets (the safari pinned tab svg) is a
funny URL :)
- Commit:
7e0ec0529553d4a8e236cad41366f79eda5126b3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: shrink struct server
keeping GOTWEBD_REPO_CACHESIZE * sizeof(struct cache_repo) inside the
struct server makes it too large for imsg on some platforms (linux at
least.) Instead, store a pointer and allocate the array when it's
received on the child processes.
ok stsp@
- Commit:
58381f7013ee220415b44aaf36c549b2f1cd2937
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: percent-decode the received query string
ok stsp@
- Commit:
f49cdcf59198e93c55db09c0382d04e448b5defe
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: free age and reflist in gotweb_render_branches
ok stsp@
- Commit:
2db401bd3a14512e3a1f1cbe686fff37b2c56764
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: free scandir(3) result in gotweb_render_index
ok stsp@
- Commit:
f8faf9f103c9a4869c82a3fe55658f0a065fb1c0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: free qs->headref before overwriting it
- Commit:
6c37ad7bc12ab6573fdad7e54b1ae0a4d74e5dbf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: fix leak in gotweb_init_querystring in error path
if strdup fails we fail to free the querystring
Found by clang' scan-build.
- Commit:
8cf2cdaa9e11ecebdd1142af9539c45b2d33556b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: add missing fcgi_printf return check
dead store found by clang' scan-build.
- Commit:
565bce9b0139246a900c5df6253b2c51f9724ea3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: fix assets URLs
In 95a4a5a1e8d0952ee0d2523dc31df7170d80e0b3 I forgot to fix the links
for the favicons and the web manifest.