aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-10-27 09:29:01 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-10-27 09:29:01 +0100
commitb204e6b61a10794d664427a3c1dd5f012ebbbe65 (patch)
tree4201b478b72fc5f394c2261efd9ce51eff545771
parentdac863a4cc699261826c793e435c9d04d45caf6b (diff)
downloadbusybox-w32-b204e6b61a10794d664427a3c1dd5f012ebbbe65.tar.gz
busybox-w32-b204e6b61a10794d664427a3c1dd5f012ebbbe65.tar.bz2
busybox-w32-b204e6b61a10794d664427a3c1dd5f012ebbbe65.zip
httpd_indexcgi: fix off-by-one error
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--networking/httpd_indexcgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/httpd_indexcgi.c b/networking/httpd_indexcgi.c
index 2605ad1bc..6663a22ad 100644
--- a/networking/httpd_indexcgi.c
+++ b/networking/httpd_indexcgi.c
@@ -149,7 +149,7 @@ static void fmt_url(/*char *dst,*/ const char *name)
149 guarantee(3); 149 guarantee(3);
150 *dst = c; 150 *dst = c;
151 if ((c - '0') > 9 /* not a digit */ 151 if ((c - '0') > 9 /* not a digit */
152 && ((c|0x20) - 'a') > 26 /* not A-Z or a-z */ 152 && ((c|0x20) - 'a') > ('z' - 'a') /* not A-Z or a-z */
153 && !strchr("._-+@", c) 153 && !strchr("._-+@", c)
154 ) { 154 ) {
155 *dst++ = '%'; 155 *dst++ = '%';