sdomi
fb9265d2d0
asdf
2025-09-10 14:07:58 +02:00
sdomi
5298cd5254
a
2025-09-10 14:02:11 +02:00
sdomi
108623c9fb
a
2025-09-10 14:00:43 +02:00
sdomi
70144540af
.
2025-09-10 13:58:13 +02:00
sdomi
1d42945453
test
2025-09-10 13:56:16 +02:00
famfo
47b5dd9f29
http.sh: fix socat IPv6 bind
2025-09-05 17:47:11 +02:00
lemonsh
23281e594a
allow running from non-root directories
2025-09-02 16:54:54 +02:00
sdomi
41cbf1ee42
docs: add example for template -index
2025-07-17 09:51:07 +02:00
sdomi
c59202a6dc
server: respect cfg[enable_multipart]
2025-06-13 02:18:00 +02:00
sdomi
57ed8eadbf
version: bump to 0.97.2
2025-06-01 17:50:00 +02:00
sdomi
1801e05fd9
template: bugfix the default include path
2025-06-01 17:47:26 +02:00
sdomi
21f922f731
template: prevent possible LFI given a template injection
...
we're now doing some extra work to sanitize paths in include keys.
2025-06-01 17:43:12 +02:00
sdomi
981426d6c2
docs: describe basic notORM usage patterns
2025-05-18 17:53:46 +02:00
sdomi
638bda8419
tests: add a test for notORM's autoincrement
2025-05-18 17:33:14 +02:00
sdomi
c6311cf4c1
tests: add testcases for v0.97.1 template extensions
2025-05-18 16:44:37 +02:00
sdomi
e9018284f5
docs: upgrade template docs for 0.97.1
2025-05-18 14:14:18 +02:00
sdomi
e809c0be6b
template: implement relative paths. bump to 0.97.1
2025-05-18 14:14:00 +02:00
sdomi
93271da824
tests: add testcase for notORM's backslash handling
2025-05-01 11:05:34 +02:00
sdomi
64fd5d1836
notORM: fix a bug around search terms containing a backslash
2025-05-01 10:58:03 +02:00
sdomi
10d19c1a36
template: implement more sanitizations for the new {{-set-value}} statement
...
this is a bit paranoic, as we're dealing with an assoc array, so we should be
fine with having basically any printable characters in here. HOWEVER, as per
the docs, we only recommend using [a-zA-Z0-9_-] anyways, so this is a good
safety measure to have.
2025-04-10 16:06:29 +02:00
sdomi
c9f03158c7
template: move main template directy into garbage to not miss it at any point
2025-04-07 22:22:41 +02:00
sdomi
ec0238f76f
docs: document the template boolean set
2025-04-06 07:02:05 +02:00
sdomi
be23e31362
template: implement set statements
2025-04-06 06:57:21 +02:00
sdomi
f2d72ef6ee
tests: fixup invalid header test
2025-04-06 06:29:39 +02:00
sdomi
c6d3dfa045
server: fixup hangs on empty POST reqs
2025-04-06 06:18:52 +02:00
sdomi
d5aaa1c265
template: tpl includes don't need to prepend the expr anymore
2025-04-06 05:05:57 +02:00
sdomi
f9e1be8a90
template: horrible hack implementing iterators in included templates
2025-04-06 04:39:01 +02:00
sdomi
6a9ec3bf71
template: small style/performance fixes
2025-04-06 03:56:33 +02:00
sdomi
e9f5ab52d2
docs: remove some ambiguity
2025-04-06 01:51:27 +02:00
sdomi
f889062633
docs: mention template include's path quirk
2025-04-05 23:53:03 +02:00
sdomi
3080e38cad
docs: document the template engine
2025-04-05 23:35:27 +02:00
sdomi
9ad46350af
template: add special auto-increment -index value
2025-04-05 20:58:01 +02:00
sdomi
9f123a6d66
worker: create missing control files on startup
2025-04-03 01:52:45 +02:00
sdomi
8aa0dcd2fa
template: fix quoting issue causing a tr malfunction
2025-04-02 22:56:11 +02:00
sdomi
cf70f8ccc0
docker: hopefully fix
2025-04-02 22:37:33 +02:00
sdomi
ede27f9905
server: normalize method to uppercase
2025-04-02 06:08:01 +02:00
sdomi
b55011332e
server: workaround for clients which incorrectly skip the Content-Length value
2025-03-14 20:23:47 +01:00
sdomi
4df7be9a7c
template: migrate nested_add to an internal randomness source
...
this should slightly improve overall performance.
additionally, we migrate to mei's proposed better way of
array copying.
2025-03-12 04:20:54 +01:00
sdomi
cf053496a2
misc: remove unnecessary sed -E
2025-03-12 04:20:27 +01:00
sdomi
44c2aec5ca
template: eliminate all temporary file i/o
...
this commit replaces all file i/o with file substitutions, bringing
the whole engine more closely in-line with how it used to look,
at least initially, before it turned out that keeping the filters
inline is a no-go due to command length limits.
This also brings a modest performance improvement (~1.35s -> ~1.2s
on my test page)
2025-03-07 03:29:37 +01:00
sdomi
86f424fb30
template: deprecate render_unsafe
...
we haven't needed this in a million years, and using it supports
poorly-written templates.
2025-03-07 02:26:46 +01:00
sdomi
ba6fa37d62
template: cleanup rest sed generators
2025-03-07 02:26:18 +01:00
sdomi
0673c0f644
template: migrate from raw hex digits to replacement variables
...
First of a few commits intending to clean up the template engine.
Fully moved from $'\01' / $'\02' control chars onto... the same, but
in variables. It should be somewhat more readable now.
Future work will include removing all of the unnecessary quotes,
and a general refactor aiming to remove at least some temporary
file writes.
2025-03-06 01:34:20 +01:00
sdomi
c5c7cda07c
tests: add template datestamp tests
2025-03-06 01:33:04 +01:00
sdomi
94b65db0e7
template: add datestamp rendering mode
2025-03-06 00:33:18 +01:00
sdomi
6fdff40f93
template: clean the uri_list on function exit
2025-03-05 22:23:44 +01:00
sdomi
7c9ae72db4
tst: small QoL invocation fixes
2025-03-04 02:36:06 +01:00
sdomi
533c49e670
notORM: migrate to safer delimeter matching everywhere
2025-03-04 02:34:02 +01:00
sdomi
19039683bb
tests: correct typo in notORM replace-oldsyntax test
2025-03-04 02:30:44 +01:00
sdomi
c22ee9b245
tests: fixup the header test
2025-03-04 02:30:14 +01:00