Commits
- 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@
- Commit:
d927f8c8203baf6607d4e64fa3520e2d164100e6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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@
- Commit:
336c64e8b8d86804e345f9ad6cd5e9690768d48d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
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.
- Commit:
01498c42e0fc9fb6355312a236656cf2f36cebc0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: add fcgi_printf
instead of fcgi_gen_response which outputs only a fixed strings provide
a printf-like fcgi_printf: it greatly simplifies the generation of the
HTML pages.
While here also (probably) fix some HTML errors: the output was verified
with the W3C validator and it's correct (in the sense that the tags are
properly closed, there are still some other things the validator
complains about.)
ok/encouragement baseprime@, ok jamsek
Thanks for reading such a boring diff!
- Commit:
2ad48e9a6b577bb911e97eb269ed1654dbb048f9
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
gotwebd: do not allocate server/socket list heads separately
ok millert@
- Commit:
ace4e41cf157fb25a0b4924a7d9490ced58e12a1
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: fix double free in gotweb_process_request
don't free the querystring, it's already done later by
fcgi_celanup_request.
ok tracey@
- Commit:
7ecc4542fefb0ad0b7babe055da2f9ac447a906b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: switch some HTML IDs to classes
HTML IDs are meant to be unique across the page. While here fix two
small errors in the generated HTML (one missing closing div and one
extra.)
ok tracey@
- Commit:
d27161034833cc359a3fec898d6ddd388ad2622e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotwebd: fix double Content-Type (and the typo)
ok tracey@
- Commit:
fced5a66069199024aaf413a06bcf544b959f6a8
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
gotwebd: fix potential type mismatch between format specifier and argument
ok tracey
- Commit:
b4c20a19a96f836e92755f902bd6b06c55b27706
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
gotwebd: explicitly include <sys/queue.h>