diff options
author | Eric Andersen | 2005-06-23 05:51:48 +0000 |
---|---|---|
committer | Eric Andersen | 2005-06-23 05:51:48 +0000 |
commit | 3efa51d9433f4e58f1bad28ac92a35dea86ca850 (patch) | |
tree | 530d052e7e39d17b2981c1ae66668bfb35de6c97 | |
parent | 6eb1e416743c597f8ecd3b595ddb00d3aa42c1f4 (diff) | |
download | busybox-3efa51d9433f4e58f1bad28ac92a35dea86ca850.zip busybox-3efa51d9433f4e58f1bad28ac92a35dea86ca850.tar.gz |
characters encoded as html should have a trailing semicolon
to be interpreted properly
-rw-r--r-- | networking/httpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/httpd.c b/networking/httpd.c index 83ded53..94fcfc8 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; |