Commit 175c8dde authored by Nils Goroll's avatar Nils Goroll

fix ban.list obj.http.* rendering

Fixes #2985
parent 211f72da
......@@ -798,7 +798,7 @@ ban_render(struct cli *cli, const uint8_t *bs, int quote)
ASSERT_BAN_OPER(bt.oper);
if (BANS_HAS_ARG1_SPEC(bt.arg1))
VCLI_Out(cli, "%s.%.*s",
VCLI_Out(cli, "%s%.*s",
arg_name[BAN_ARGIDX(bt.arg1)],
bt.arg1_spec[0] - 1, bt.arg1_spec + 1);
else
......
......@@ -92,5 +92,5 @@ varnish v1 -clierr 106 "ban req.url ~ [[["
# Ban expression with quoting
varnish v1 -cliok {ban req.url ~ "BAR"}
shell {varnishadm -n ${tmpdir}/v1 ban 'obj.http.Host ~ \"Foo\"'}
varnish v1 -cliok "ban.list"
varnish v1 -cliexpect {(?s)\d+\.\d+\s+\d+\s+-\s+\Qobj.http.Host ~ "Foo"\E} "ban.list"
varnish v1 -clijson "ban.list -j"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment