Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
175c8dde
Commit
175c8dde
authored
Apr 25, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix ban.list obj.http.* rendering
Fixes #2985
parent
211f72da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
cache_ban.c
bin/varnishd/cache/cache_ban.c
+1
-1
c00019.vtc
bin/varnishtest/tests/c00019.vtc
+1
-1
No files found.
bin/varnishd/cache/cache_ban.c
View file @
175c8dde
...
...
@@ -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
...
...
bin/varnishtest/tests/c00019.vtc
View file @
175c8dde
...
...
@@ -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 -cli
ok
"ban.list"
varnish v1 -cli
expect {(?s)\d+\.\d+\s+\d+\s+-\s+\Qobj.http.Host ~ "Foo"\E}
"ban.list"
varnish v1 -clijson "ban.list -j"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment