Commits
- 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.
- Commit:
5fba075071d3c6894ede739a7fc9b791a7f392f7
- From:
- Omar Polo <op@omarpolo.com>
- Via:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix regression in gotweb_free_repo_tag(): free(...): modified chunk-pointer
problem introduced in commit 625e5896fc9ecf87ccfc92ad2a65cd3be58f73c0
- Commit:
625e5896fc9ecf87ccfc92ad2a65cd3be58f73c0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: free all allocated fields of repo_tag
got_get_repo_tags needs some tweaking to how tag_commit is allocated
too.
ok stsp@
- Commit:
89ae185cb4dd6d82b92a79daa8ef484b7da78ec3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: fix possible leaks when handling errors
all very unlikely.
part of a bigger diff that's ok stsp@
- Commit:
341fa7cacc77a0a56e7e6eebec0b591ea6d8003b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: minor tweaks
drop:
- a tautological s[strlen(s)] == '\0'
- a few duplicates checks
- a lone if (error) when it's always NULL
- an extra NULL check
part of a bigger diff that's ok stsp@
- Commit:
0fad85ddfc19bb67910f06ba6088f27573f83fab
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: refactor gotweb_load_got_path
- don't special case ".got": if it's a work-tree gotwebd will just fail
soon enough. Suggested by stsp@
- avoid an strdup.
- drop `opened' to make it easier to follow what's going on.
ok stsp@
- Commit:
b5c757f5f816a8061f4879da9e68a39141148e40
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make gotwebd cache open repository handles in struct server
ok op@
- Commit:
d52aad142172d4a9c6219ac2f685a90832fa0838
- From:
- Omar Polo <op@omarpolo.com>
- Date:
indent
- Commit:
4010d4df50dda763bb43dc445ca83ab74420f84e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: plug two memory leak and drop unneeded ternary
ok tracey@
- Commit:
1999985f9a161118336b49101e3aab94bced7722
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
get rid of (null) on the index page. ok stsp
- Commit:
95a4a5a1e8d0952ee0d2523dc31df7170d80e0b3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: use SCRIPT_NAME to derive URLs
This makes gotwebd use SCRIPT_NAME instead of the DOCUMENT_ROOT fastcgi
param to generate the links to the assets and changes some links so
every page is consistently linked with a relative URL.
It allows to drop the `root "/"' in the location for fastcgi and, as a
bonus, also makes possible to run gotwebd on non "/" paths.
ok stsp@
- Commit:
f0680473a7db1e5941bffdc2ab5f80ddec209122
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: fix NULL deref on ENOMEM in gotweb_process_request
ok tracey@
- Commit:
4d648b92ac1ac5f952a42f29052c56e8d32547a3
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: add CSP policy
ok tracey@
- Commit:
f897bb2469da024a8db3b1fae10d24ac7cf040e1
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: fix for possible NULL beign passed to fcgi_printf
reported by and ok tracey@