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
cad88f4c
Commit
cad88f4c
authored
Oct 31, 2011
by
Tollef Fog Heen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support for \t\n in varnishncsa format strings
parent
d5117f53
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
varnishncsa.c
bin/varnishncsa/varnishncsa.c
+8
-0
varnishncsa.rst
doc/sphinx/reference/varnishncsa.rst
+2
-0
No files found.
bin/varnishncsa/varnishncsa.c
View file @
cad88f4c
...
...
@@ -626,6 +626,14 @@ h_ncsa(void *priv, enum VSL_tag_e tag, unsigned fd,
for
(
p
=
format
;
*
p
!=
'\0'
;
p
++
)
{
/* allow the most essential escape sequences in format. */
if
(
*
p
==
'\\'
)
{
p
++
;
if
(
*
p
==
't'
)
VSB_putc
(
os
,
'\t'
);
if
(
*
p
==
'n'
)
VSB_putc
(
os
,
'\n'
);
continue
;
}
if
(
*
p
!=
'%'
)
{
VSB_putc
(
os
,
*
p
);
continue
;
...
...
doc/sphinx/reference/varnishncsa.rst
View file @
cad88f4c
...
...
@@ -54,6 +54,8 @@ The following options are available:
%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i"
Escape sequences \\n and \\t are supported.
Supported formatters are:
%b
...
...
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