Files
tinyproxy/src
rofl0r a8848d4bd8 html-error: substitute template variables via a regex
previously, in order to detect and insert {variables} into error/stats
templates, tinyproxy iterated char-by-char over the input file, and would
try to parse anything inside {} pairs and treat it like a variable name.
this breaks CSS, and additionally it's dog slow as tinyproxy wrote every
single character to the client via a write syscall.
now we process line-by-line, and inspect all matches of the regex
\{[a-z]{1,32}\}. if the contents of the regex are a known variable name,
substitution is taking place. if not, the contents are passed as-is to
the client. also the chunks before and after matches are written in
a single syscall.

closes #108
2020-09-07 04:32:13 +01:00
..
2008-06-19 21:33:20 +05:30
2018-02-06 16:57:02 +00:00
2018-02-06 16:57:02 +00:00
2018-03-29 00:40:18 +01:00
2008-12-08 13:39:44 +00:00
2020-01-15 16:57:03 +00:00
2009-12-07 00:22:52 +01:00
2008-12-01 15:01:11 +00:00
2018-02-25 18:35:34 +00:00
2009-12-07 00:22:46 +01:00
2009-09-15 01:11:25 +05:30
2009-09-15 01:11:25 +05:30
2008-12-01 15:01:11 +00:00
2008-12-08 13:39:44 +00:00
2009-11-17 01:52:23 +05:30
2009-09-15 01:11:25 +05:30