aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2005-06-23 05:51:48 +0000
committerEric Andersen <andersen@codepoet.org>2005-06-23 05:51:48 +0000
commit3efa51d9433f4e58f1bad28ac92a35dea86ca850 (patch)
tree530d052e7e39d17b2981c1ae66668bfb35de6c97
parent6eb1e416743c597f8ecd3b595ddb00d3aa42c1f4 (diff)
downloadbusybox-3efa51d9433f4e58f1bad28ac92a35dea86ca850.tar.gz
characters encoded as html should have a trailing semicolon
to be interpreted properly
-rw-r--r--networking/httpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c
index 83ded5330..94fcfc8c1 100644
--- a/networking/httpd.c
+++ b/networking/httpd.c
@@ -734,7 +734,7 @@ static char *encodeString(const char *string)
while ((ch = *string++)) {
// very simple check for what to encode
if (isalnum(ch)) *p++ = ch;
- else p += sprintf(p, "&#%d", (unsigned char) ch);
+ else p += sprintf(p, "&#%d;", (unsigned char) ch);
}
*p=0;
return out;