Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnishevent
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
varnishevent
Commits
adfb6e38
Commit
adfb6e38
authored
Mar 07, 2018
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support SLT_F_UNSAFE
Ref varnish-cache master 2d0843eac8d77cfb3369591a61234d9c3ed6881e Introduced
parent
76741251
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
format.c
src/format.c
+2
-5
No files found.
src/format.c
View file @
adfb6e38
...
...
@@ -797,15 +797,12 @@ format_VCL_Log(const tx_t *tx, const arg_t *args, char **s, size_t *len)
*
len
=
strlen
(
l
);
}
/*
* XXX: apparently none of VSL, varnishlog or varnishncsa use VSB_quote
* for SLT_F_BINARY any more.
*/
void
format_SLT
(
const
tx_t
*
tx
,
const
arg_t
*
args
,
char
**
s
,
size_t
*
len
)
{
format_slt
(
tx
,
args
->
tag
,
args
->
hdr_idx
,
args
->
fld
,
s
,
len
);
if
(
VSL_tagflags
[
args
->
tag
]
&
SLT_F_BINARY
&&
*
s
!=
NULL
&&
*
len
>
0
)
if
(
VSL_tagflags
[
args
->
tag
]
&
(
SLT_F_UNSAFE
|
SLT_F_BINARY
)
&&
*
s
!=
NULL
&&
*
len
>
0
)
for
(
int
i
=
0
;
i
<
*
len
;
i
++
)
if
(
!
isprint
(
*
(
*
s
+
i
)))
{
VSB_clear
(
scratch
);
...
...
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