Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
dd4c1ed0
Commit
dd4c1ed0
authored
May 18, 2011
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't interpret \ escapes in ban strings from vcl::ban()
parent
896c923f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
cache_vrt.c
bin/varnishd/cache_vrt.c
+1
-1
c00022.vtc
bin/varnishtest/tests/c00022.vtc
+5
-4
No files found.
bin/varnishd/cache_vrt.c
View file @
dd4c1ed0
...
...
@@ -467,7 +467,7 @@ VRT_ban_string(struct sess *sp, const char *str)
int
i
;
(
void
)
sp
;
av
=
ParseArgv
(
str
,
NULL
,
0
);
av
=
ParseArgv
(
str
,
NULL
,
ARGV_NOESC
);
if
(
av
[
0
]
!=
NULL
)
{
/* XXX: report error how ? */
FreeArgv
(
av
);
...
...
bin/varnishtest/tests/c00022.vtc
View file @
dd4c1ed0
...
...
@@ -93,7 +93,7 @@ client c1 {
# Ban: it
client c1 {
txreq -req PURGESTR -hdr "Ban: obj.http.foo ==
\"bar6\"
"
txreq -req PURGESTR -hdr "Ban: obj.http.foo ==
bar6
"
rxresp
expect resp.status == 410
} -run
...
...
@@ -110,10 +110,11 @@ client c1 {
# Ban: something else
client c1 {
txreq -req PURGESTR -hdr "Ban: obj.http.foo ==
\"bar6\"
"
txreq -req PURGESTR -hdr "Ban: obj.http.foo ==
bar6
"
rxresp
expect resp.status == 410
} -run
varnish v1 -cliok "ban.list"
# Still there
...
...
@@ -127,7 +128,7 @@ client c1 {
# Header match
client c1 {
txreq -req PURGESTR -hdr "Ban: req.http.foo ==
\"barcheck\"
"
txreq -req PURGESTR -hdr "Ban: req.http.foo ==
barcheck
"
rxresp
expect resp.status == 410
} -run
...
...
@@ -143,7 +144,7 @@ client c1 {
# Header match
client c1 {
txreq -req PURGESTR -hdr "Ban: obj.http.foo ==
\"barcheck\"
"
txreq -req PURGESTR -hdr "Ban: obj.http.foo ==
barcheck
"
rxresp
expect resp.status == 410
} -run
...
...
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