Commit graph

14 commits

Author SHA1 Message Date
Stanley Lieber
1a0337f684 bin/contrib/rc-httpd/handlers/error: add missing error 400 2021-11-22 00:45:43 -05:00
Stanley Lieber
3a90e2da78 bin/contrib/rc-httpd{rc-httpd, handlers/error}: do some minimal sanitization on $SERVER_NAME before handing it off to select-handler. this prevents malformed Host: headers from retrieving arbitrary files from the file system. (thanks, Lightning) 2021-11-21 18:49:58 -05:00
Stanley Lieber
7adaa4b130 bin/contrib/rc-httpd/rc-httpd: plan9port does not have read -c; replace with dd (thanks, khm) 2020-06-14 22:30:20 -04:00
Stanley Lieber
b2de370f6c bin/contrib/rc-httpd/handlers/{dir-index, serve-static}: urlencode -d -> urldecode.awk 2020-06-14 22:29:36 -04:00
Stanley Lieber
37e2d06b1a bin/contrib/rc-httpd/select-handler: clarify comments; add rules for maintainer test apparatus. 2020-06-12 20:52:27 -04:00
Stanley Lieber
0bd715dabb bin/contrib/rc-httpd/handlers/dir-index: use urlencode(1), not urlencode.awk (for now?) 2017-08-10 21:43:54 -04:00
Stanley Lieber
721ac39234 bin/contrib/rc-httpd/handlers/dir-index: use urlencode.awk 2016-02-11 16:25:11 -05:00
Stanley Lieber
52d7d43342 bin/contrib/rc-httpd/rc-httpd: add $libdir 2016-02-11 16:24:49 -05:00
Stanley Lieber
c046dd4f8f add bin/contrib/rc-httpd/lib/urldecode.awk 2016-02-11 16:23:48 -05:00
Stanley Lieber
130a3f4454 bin/contrib/rc-httpd/handlers/serve-static: file(1): try Plan 9 syntax first, then devolve to UNIX. 2016-02-10 20:38:40 -05:00
Stanley Lieber
b40a814120 bin/contrib/rc-httpd/handlers/__mkfstmp: remove accidentally committed file. 2016-02-10 20:20:31 -05:00
Stanley Lieber
b64418b85f bin/contrib/rc-httpd: rc-httpd add system $PATH to $path; bin/contrib/rc-httpd/handlers/serve-static: try two different versions of file(1) syntax 2016-02-10 14:04:14 -05:00
Stanley Lieber
d9c48e6ee0 bin/contrib/rc-httpd/: fix default paths and environment variables; create a generic default select-handler; add tcp80, used for launching rc-httpd from listen(8) 2016-02-04 21:47:22 -05:00
Stanley Lieber
a99fa8b44f initial import of changes from 9front bikeshedding; bundle rc-httpd 2016-02-04 15:05:05 -05:00