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
018c0fda
Commit
018c0fda
authored
Sep 17, 2020
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SQUASHME: switch to vct_ishdrval()
parent
08d3a70d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
cache_vrt.c
bin/varnishd/cache/cache_vrt.c
+1
-1
vct.h
include/vct.h
+1
-0
No files found.
bin/varnishd/cache/cache_vrt.c
View file @
018c0fda
...
...
@@ -597,7 +597,7 @@ validhdr(const char *p)
{
AN
(
p
);
for
(;
*
p
!=
'\0'
;
p
++
)
if
(
vct_isctl
(
*
p
)
&&
!
vct_issp
(
*
p
))
if
(
!
vct_ishdrval
(
*
p
))
return
(
0
);
return
(
1
);
}
...
...
include/vct.h
View file @
018c0fda
...
...
@@ -84,6 +84,7 @@ vct_is(int x, uint16_t y)
#define vct_isxmlnamestart(x) vct_is(x, VCT_XMLNAMESTART)
#define vct_isxmlname(x) vct_is(x, VCT_XMLNAMESTART | VCT_XMLNAME)
#define vct_istchar(x) vct_is(x, VCT_ALPHA | VCT_DIGIT | VCT_TCHAR)
#define vct_ishdrval(x) (((x) >= 0x20 && (x) != 0x7f) || (x) == 0x09)
static
inline
int
vct_iscrlf
(
const
char
*
p
,
const
char
*
end
)
...
...
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