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
41039944
Commit
41039944
authored
Apr 12, 2015
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formatter for %u does not modify the payload
parent
948562e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
format.c
src/format.c
+7
-6
No files found.
src/format.c
View file @
41039944
...
@@ -37,7 +37,6 @@
...
@@ -37,7 +37,6 @@
#include "vas.h"
#include "vas.h"
#include "miniobj.h"
#include "miniobj.h"
#include "base64.h"
#include "base64.h"
#include "vre.h"
#include "varnishevent.h"
#include "varnishevent.h"
#include "format.h"
#include "format.h"
...
@@ -445,7 +444,8 @@ static inline void
...
@@ -445,7 +444,8 @@ static inline void
format_tim
(
const
tx_t
*
tx
,
const
char
*
fmt
,
char
**
s
,
size_t
*
len
)
format_tim
(
const
tx_t
*
tx
,
const
char
*
fmt
,
char
**
s
,
size_t
*
len
)
{
{
unsigned
secs
,
usecs
;
unsigned
secs
,
usecs
;
char
*
data
,
*
ts
;
char
*
data
;
const
char
*
ts
;
time_t
t
;
time_t
t
;
struct
tm
tm
;
struct
tm
tm
;
...
@@ -526,14 +526,15 @@ format_u(const tx_t *tx, enum VSL_tag_e tag, char **s, size_t *len)
...
@@ -526,14 +526,15 @@ format_u(const tx_t *tx, enum VSL_tag_e tag, char **s, size_t *len)
if
((
hdr
=
get_hdr
(
tx
,
tag
,
"Authorization"
))
!=
NULL
if
((
hdr
=
get_hdr
(
tx
,
tag
,
"Authorization"
))
!=
NULL
&&
strncasecmp
(
get_fld
(
hdr
,
0
,
len
),
"Basic"
,
5
)
==
0
)
{
&&
strncasecmp
(
get_fld
(
hdr
,
0
,
len
),
"Basic"
,
5
)
==
0
)
{
char
*
c
,
*
auth
=
get_fld
(
hdr
,
1
,
len
);
c
onst
c
har
*
c
,
*
auth
=
get_fld
(
hdr
,
1
,
len
);
VB64_init
();
VB64_init
();
VB64_decode
(
scratch
,
config
.
max_reclen
,
auth
,
auth
+
*
len
);
VB64_decode
(
scratch
,
config
.
max_reclen
,
auth
,
auth
+
*
len
);
c
=
strchr
(
scratch
,
':'
);
c
=
strchr
(
scratch
,
':'
);
if
(
c
!=
NULL
)
*
c
=
'\0'
;
*
s
=
scratch
;
*
s
=
scratch
;
*
len
=
strlen
(
scratch
);
if
(
c
!=
NULL
)
*
len
=
c
-
scratch
;
else
*
len
=
strlen
(
scratch
);
}
}
else
{
else
{
*
s
=
dash
;
*
s
=
dash
;
...
...
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