History log of /netbsd-src/libexec/httpd/printenv.lua (Results 1 – 5 of 5)
Revision Date Author Comments
# 95f34171 28-Feb-2021 rillig <rillig@NetBSD.org>

libexec/httpd: fix cross-site scripting in Lua example

curl \
--header 'NAME<x>: <y>' \
'http://127.0.0.1:8080/test/printenv?<b>=<i>'


# 056172a3 25-Aug-2020 leot <leot@NetBSD.org>

Fix a typo in a comment


# d3f055bf 07-Dec-2015 kamil <kamil@NetBSD.org>

Improve the httpd(8) printenv.lua Lua example

Stop using Lua builtin print function and replace them with http.* ones.
httpd.print and http.write wraps SSL support when needed.

Print http headers,

Improve the httpd(8) printenv.lua Lua example

Stop using Lua builtin print function and replace them with http.* ones.
httpd.print and http.write wraps SSL support when needed.

Print http headers, without them browser may interpret page as raw text.

No need to hardcode prefix path in the form.

Add comments for a user with tips how to use this script.

Patch by Travis Paul

Closes PR misc/50502

show more ...


# d1b43391 02-Jan-2014 mrg <mrg@NetBSD.org>

- update CHANGES with recent changes
- update version to 20140102
- update copyrights
- use getcwd() over getwd()
- fix lean build (don't include lua)


# cb23152c 12-Oct-2013 mbalmer <mbalmer@NetBSD.org>

add Lua scripting support to bozohttpd, see httpd(8) for details