Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | cgi: fix broken libexec path env variable | bptato | 2024-01-26 | 1 | -1/+1 |
| | |||||
* | Add urlenc, urldec; fix a URL encoding bug; improve trans.cgi | bptato | 2024-01-08 | 1 | -1/+1 |
| | | | | | | | | | | * Fix incorrect internal definition of the fragment percent-encode set * urlenc, urldec: these are simple utility programs mainly for use with shell local CGI scripts. (Sadly the printf + xargs solution is not portable.) * Pass libexec directory as an env var to local CGI scripts * Update trans.cgi to use urldec and add an example for combining it with selections | ||||
* | chapath: add missing return | bptato | 2023-12-14 | 1 | -1/+2 |
| | |||||
* | Separate gopher conversion from main binary | bptato | 2023-12-10 | 1 | -0/+5 |
| | | | | | | | | | | | | | | | | | | | | | Now we use a (much simplified) gopher2html binary in libexec, instead of converting gopher directories to HTML in loader/gopher. This has two advantages: * Less ugly conversion logic in the loader module; we can just convert the file line by line. (The previous converter also had some correctness issues, that is fixed now as well.) * If the user desires, they can replace the gopher converter with another binary using the mailcap mechanism. The disadvantages are: * For now, source display is broken. This is a problem with all mailcap filters in general, and should be fixed in the future. (That said, the previous version also only displayed the converted HTML source, which was not really useful anyway.) * The proper directory structure is required for this to work; OTOH plenty of work has been done so that this is as frictionless as possible, so it should not really be a problem. | ||||
* | config: better path handling; fix array parsing bug | bptato | 2023-12-10 | 1 | -0/+286 |
* Paths are now parsed through an unified code path with some useful additions like environment variable substitution. * Fix a bug in parseConfigValue where strings would be appended to existing arrays (and not override them). * Fix beforeLast calling afterLast for some reason. * Add a default CGI directory. |