mirror of
https://github.com/sheumann/hush.git
synced 2025-01-03 16:29:50 +00:00
hush: add <> and () as "safe" arith chars
This commit is contained in:
parent
bfbc971f9f
commit
d0b4a8c285
@ -1791,7 +1791,7 @@ static int expand_vars_to_list(o_string *output, int n, char *arg, char or_mask)
|
|||||||
}
|
}
|
||||||
if (isdigit(c))
|
if (isdigit(c))
|
||||||
continue;
|
continue;
|
||||||
if (strchr(" \t+-*/%_", c) != NULL)
|
if (strchr(" \t+-*/%<>()_", c) != NULL)
|
||||||
continue;
|
continue;
|
||||||
c |= 0x20; /* tolower */
|
c |= 0x20; /* tolower */
|
||||||
if (c >= 'a' && c <= 'z')
|
if (c >= 'a' && c <= 'z')
|
||||||
|
Loading…
Reference in New Issue
Block a user