projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dac863a
)
httpd_indexcgi: fix off-by-one error
author
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 27 Oct 2009 08:29:01 +0000
(09:29 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 27 Oct 2009 08:29:01 +0000
(09:29 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/httpd_indexcgi.c
patch
|
blob
|
history
diff --git
a/networking/httpd_indexcgi.c
b/networking/httpd_indexcgi.c
index 2605ad1bcb5e5064118e9bc15eefc661489076c3..6663a22adffae8a498c7aad9431c7203e3747874 100644
(file)
--- a/
networking/httpd_indexcgi.c
+++ b/
networking/httpd_indexcgi.c
@@
-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++ = '%';