Commit graph

81 commits

Author SHA1 Message Date
sdomi 231b52f171 * fix router parameter clobbering
if a route contained a static string with the same name as one
of the named params, said string would overwrite the payload from
the previous named param. this commit adds a check for `:` in the
template to prevent this
2024-04-21 21:54:06 +02:00
sdomi a94d7b7c24 * fixes of some ugly sed hacks from 4 years ago 2024-04-21 19:27:23 +02:00
Dominique Liberda 60db12abe1 server: temporarily revert the previous patch ,_, 2023-04-28 11:34:42 +02:00
Dominique Liberda db8491d7a5 server: post_multipart needs to be enabled manually now 2023-04-28 10:16:41 +02:00
Dominique Liberda 91e20ceaae template: (hopefully) fix weird backslash escape behavior + hopefully a bit better perf 2023-04-21 22:59:09 +02:00
Dominique Liberda 7f1838372a * fix regression due to sed's imporper regexp handling 2023-01-18 06:24:10 +01:00
Dominique Liberda 4ce52292aa + else statement in conditional templates 2023-01-18 05:09:33 +01:00
Dominique Liberda e2dbc9e4bd * template nesting, fixes 2022-11-29 11:06:45 -05:00
Dominique Liberda 0c32e2fe00 * new template functions 2022-11-29 06:46:50 -05:00
Dominika Liberda 1a7805fccb * satanize 2022-06-28 09:34:04 +02:00
Dominika Liberda fcd102f113 * oops, fixes global replace 2022-06-25 12:02:45 +02:00
Dominika Liberda f3ff522d82 * template replace now global except for foreach 2022-06-25 11:32:20 +02:00
Dominika Liberda b7945227ea * fix ampersand expansion 2022-06-25 11:03:39 +02:00
Dominika Liberda 828bc8e426 * proper multiline 2022-06-25 09:23:16 +02:00
Dominika Liberda a954f330ab + poor man's array copy 2022-06-25 09:00:25 +02:00
Dominika Liberda c607722e2b * stuff working 2022-06-21 04:00:17 +02:00
Dominika Liberda 18083f0cf3 * broken, i'll squish this anyways 2022-06-20 04:56:54 +02:00
Dominika Liberda 5851ccc104 * a bit cleaner debug mode 2022-06-19 20:45:29 +02:00
Dominika a69e756a93 * fix an awful bug, eww how did this get here 2022-01-11 18:41:11 +01:00
Dominika 5be51165e2 * now 302s properly (WiP?) 2021-12-19 03:36:00 +01:00
bad 52c09d888e Switch to using #!/usr/bin/env bash
This fixes http.sh on nixos, macos and probably a few other systems
2021-09-22 14:52:03 +02:00
Dominika Liberda 2639361804 * another router fix, for real this time 2021-08-02 22:37:27 +00:00
Dominika Liberda 4e49582099 * another router fix... 2021-08-03 00:29:41 +02:00
Dominika Liberda 4845da7909 * another fix in router 2021-08-03 00:17:48 +02:00
Dominika Liberda d80ae05bfe * fix bad behaviour on routing / 2021-08-01 22:42:57 +02:00
Dominika Liberda 67921ebab8 * fix POST data not being read when using router 2021-08-01 19:20:36 +02:00
Dominika Liberda 61bd6b72fe * fix XML mimetype 2021-07-26 23:05:41 +02:00
Lauren Liberda 911eca714c html_encode: support for data from stdin 2021-06-23 00:40:35 +02:00
Dominika Liberda d249f225ba * even better sanitization in proxy 2021-06-02 00:22:42 +02:00
Dominika Liberda 988e290eed * proxy redirects are partly urlencoded now 2021-06-01 23:56:11 +02:00
Dominika Liberda 1ff1d08852 * fixed (?) proxying redirects 2021-06-01 23:48:02 +02:00
Dominika Liberda 4ce0667870 * proxying now uses curl instead of ncat 2021-06-01 22:09:44 +02:00
Dominika Liberda 46e77541cf + new proxying system 2021-06-01 21:14:03 +02:00
Dominika Liberda 3270b2bf26 * bugfix in last bugfix 2021-06-01 02:19:26 +02:00
Dominika Liberda b92dc47b38 * fixes problems with %3F in GET query 2021-06-01 00:52:43 +02:00
Dominika Liberda 13819791ab * fixed mail for picky SMTP servers 2021-05-20 20:23:33 +02:00
Dominika Liberda ad7ce7d222 * fix in header handling 2021-05-17 17:26:22 +02:00
Dominika Liberda 9ea79c084b * added socat-only operation mode 2021-05-16 11:10:39 +02:00
Dominika Liberda 19d97773a9 * cfg[unbuffered] now does additional fun things 2021-05-03 21:12:02 +00:00
Dominika Liberda b1710af38b + unbuffered responses and r[range] 2021-05-02 23:05:31 +00:00
Dominika Liberda 3608935ea3 * added UA to logs 2021-05-02 14:51:56 +00:00
Dominika Liberda a0d23e1603 * html_encode bugfix, changed default URL decode algorithm 2021-04-02 20:05:20 +02:00
Dominika Liberda 6b03a4818b + url_encode and url_decode implementations 2021-04-02 19:39:25 +02:00
Dominika Liberda 7bf91f2ac7 * fixes directory traversal in Host header 2021-04-02 17:10:30 +02:00
Dominika Liberda ecf582c1da * fix for strings exceeding sed's length limit 2021-02-28 18:27:06 +01:00
Dominika Liberda 68e1c1b06c * fixes in unsafe rendering 2021-02-28 13:45:29 +01:00
Dominika Liberda 9a1683a3d4 + added unsafe rendering mode for templates 2021-02-28 12:39:46 +01:00
Dominika Liberda c53cb884ef + basic template engine 2021-02-28 03:35:05 +01:00
Dominika Liberda bb8805d786 * more quotes 2021-02-28 01:05:24 +01:00
Dominika Liberda 3218dcfdab * router parsed after parsing request 2021-02-26 23:24:19 +01:00