mirror of
https://github.com/sheumann/hush.git
synced 2024-12-25 18:33:06 +00:00
httpd_indexcgi: fix off-by-one error
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
dac863a4cc
commit
b204e6b61a
@ -149,7 +149,7 @@ static void fmt_url(/*char *dst,*/ const char *name)
|
||||
guarantee(3);
|
||||
*dst = c;
|
||||
if ((c - '0') > 9 /* not a digit */
|
||||
&& ((c|0x20) - 'a') > 26 /* not A-Z or a-z */
|
||||
&& ((c|0x20) - 'a') > ('z' - 'a') /* not A-Z or a-z */
|
||||
&& !strchr("._-+@", c)
|
||||
) {
|
||||
*dst++ = '%';
|
||||
|
Loading…
Reference in New Issue
Block a user