Commits


remove trailing whitespace; patch by Josiah Frentsos


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@


gotwebd: garbage collect %token FCGI_SOCKET ok stsp@


remove fcgi_socket keyword from gotwebd.conf; "listen on" now implies it ok op@


got: fix typo in argc check when diffing two blobs We already have two arguments when diffing two blobs, so check for more than two like we do when diffing two objects to check for invalid path args. Includes new regress test by op for diffing two blobs. ok stsp@ and ok plus regress test from op@


tog: fix typo in diff nlines > 0 check We want to check if *nlines is greater than zero here. ok op@ and stsp@


gotwebd.8: explicitly point out that gotwebd and httpd share a user ID


hint at SNI support in gotwebd.conf.5; suggested by tracey


Xr httpd manual pages


add missing whitespace; spotted by tracey


use Xo/Xc in the man pages Patch by Josiah Frentsos; ok kn@


document gotwebd's server concept better; requested by tracey


gotwebd.conf should Xr gotwebd, not gotweb


initial pass over gotwebd docs tracey is fine with gotwebd.8 but gotweb.conf.5 still needs some work


allow multiple "listen on" statements per server in gotwebd.conf ok tracey


change gotwebd.conf fcgi socket syntax to "listen on 'foo' port 'bar'" ok op@


gotwebd: fix NULL deref on ENOMEM in gotweb_process_request ok tracey@


gotwebd: fix memory leak introduced in d927f8c ok tracey@


don't create signed tag objects with trailing NUL Although Git itself did not care, the superfluous NUL at the end of the tag object was breaking GitHub's SSH signature detection. ok stsp@


portable: sockets: handle sa_len/ss_len portably In the sockaddr_storage struct, there can be a ss_len field. This is seen on some BSDs, but not Linux. Since this isn't POSIX-specific, there's no guarantee it will be available on all systems.


gotwebd: add CSP policy ok tracey@


gotwebd: fix for possible NULL beign passed to fcgi_printf reported by and ok tracey@


gotwebd: make sure to escape possibly unsafe strings this fixes only the HTML escaping of strings, the urlencode is still missig. while here also plug a memory leak in gotweb_render_branches and drop some needless ternary operators. ok tracey@


gotwebd: minor tweaks to the generated HTML spotted by validator.w3.org: - use target="_blank" instead of `_sotd' - drop `alt' attributes in `a' tags This fixes all the errors reported; only a warning suggesting to add a `lang' attribute on the <html> tag remains.


mark functions internally used by sockets.c as static ok tracey