From 7868ab422fab09067d7ce862deaa3780e7a8807e Mon Sep 17 00:00:00 2001 From: Cody Boone Ferguson <53008573+xexyl@users.noreply.github.com> Date: Thu, 4 Jan 2024 07:48:06 -0800 Subject: [PATCH] Update remarks about pootify scripts in 1998/dlowe --- 1998/dlowe/README.md | 28 ++++++++++++---------------- thanks-for-help.md | 3 +-- 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/1998/dlowe/README.md b/1998/dlowe/README.md index 902b1b0fa..91ebaf6ec 100644 --- a/1998/dlowe/README.md +++ b/1998/dlowe/README.md @@ -112,18 +112,18 @@ else fi ``` -could be used to pootify web pages. It was noticed in 2023, however, that -`lynx(1)` does not work well and `links(1)` does not have the same security -protections that `lynx(1)` does. Thus it might be unwise to use as a CGI script. +can be used to pootify web pages. This has been added as +[pootify.cgi.sh](pootify.cgi.sh) which forbids `file://` based URLs and which +uses `lynx(1)` with the option referred to above. This will not, of course, +render it as html but rather show the modified html. Nevertheless, this has +**NOT** been tested as a CGI script with a webserver to display a pootified web +page. -The [pootify.sh](pootify.sh) script has been added which is a modification to -the above which can be used to render html files locally with the added bonus -that one can use `file://` URLs. If one uses it as a CGI script (whether -modifying it to use `lynx(1)` or not) they might want to uncomment the check in -the script for `file://` based URLs. It has not been tested as a CGI script with -lynx(1) so it's maybe possible that it would work this way. - -You can use this script, however, to download and generate html files that you +The [pootify.sh](pootify.sh) script has also been added which is a modification +to the above script which can be used to render html files locally with the +added bonus that one can use `file://` URLs. If one wants a CGI script they +should use the above one instead. You can use the script +[pootify.sh](pootify.sh), however, to download and generate html files that you can look at locally in a browser or pipe through `less(1)`. For instance: ```sh @@ -133,13 +133,9 @@ can look at locally in a browser or pipe through `less(1)`. For instance: ``` where the first one would show the text as rendered but without links, images -etc. and the second one would write the html to ms.html so that you could open +etc. and the second one would write the html to `ms.html` so that you could open it in a browser. -If one does use it as a CGI script you'll want to check out -[pootify.cgi.sh](pootify.cgi.sh) which forbids `file://` based URLs and which -uses `lynx(1)` with the option referred to above. - For an old example of it working as a CGI script see: ```sh diff --git a/thanks-for-help.md b/thanks-for-help.md index c05fd7aa8..682355cf9 100644 --- a/thanks-for-help.md +++ b/thanks-for-help.md @@ -2082,8 +2082,7 @@ to be `int` (in both versions). Cody added the scripts [try.sh](/1998/dlowe/try.sh), [try.alt.sh](/1998/dlowe/try.alt.sh), [pootify.sh](/1998/dlowe/pootify.sh) and [pootify.cgi.sh](/1998/dlowe/pootify.cgi.sh) for a fun example use of the -program, a local pootifier of web pages and a CGI pootifier. It should be noted -that the CGI version might have an issue with modern systems; see [historical +program, a local pootifier of web pages and a CGI pootifier. See [historical remarks](/1998/dlowe/README.md#historical-remarks) for more details on the pootify scripts.