Bump liberty, use iscntrl_ascii()
This commit is contained in:
parent
289193dd1a
commit
2d9856cca8
@ -2246,7 +2246,7 @@ config_validate_nonjunk_string
|
|||||||
{
|
{
|
||||||
// Not even a tabulator
|
// Not even a tabulator
|
||||||
unsigned char c = item->value.string.str[i];
|
unsigned char c = item->value.string.str[i];
|
||||||
if (c < 32)
|
if (iscntrl_ascii (c))
|
||||||
{
|
{
|
||||||
error_set (e, "control characters are not allowed");
|
error_set (e, "control characters are not allowed");
|
||||||
return false;
|
return false;
|
||||||
@ -8059,7 +8059,7 @@ static bool
|
|||||||
validate_server_name (const char *name)
|
validate_server_name (const char *name)
|
||||||
{
|
{
|
||||||
for (const unsigned char *p = (const unsigned char *) name; *p; p++)
|
for (const unsigned char *p = (const unsigned char *) name; *p; p++)
|
||||||
if (*p < 32 || *p == '.')
|
if (iscntrl_ascii (*p) || *p == '.')
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
2
liberty
2
liberty
@ -1 +1 @@
|
|||||||
Subproject commit 1a76b2032e6d18d9f95d9d0bb98edc26023c8618
|
Subproject commit 7023c513477eca7832f5ae3c6204a7240c1401c0
|
Loading…
Reference in New Issue
Block a user