diff options
author | Eric Andersen <andersen@codepoet.org> | 2005-06-23 05:51:48 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2005-06-23 05:51:48 +0000 |
commit | 3efa51d9433f4e58f1bad28ac92a35dea86ca850 (patch) | |
tree | 530d052e7e39d17b2981c1ae66668bfb35de6c97 | |
parent | 6eb1e416743c597f8ecd3b595ddb00d3aa42c1f4 (diff) | |
download | busybox-w32-3efa51d9433f4e58f1bad28ac92a35dea86ca850.tar.gz busybox-w32-3efa51d9433f4e58f1bad28ac92a35dea86ca850.tar.bz2 busybox-w32-3efa51d9433f4e58f1bad28ac92a35dea86ca850.zip |
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 83ded5330..94fcfc8c1 100644 --- a/networking/httpd.c +++ b/networking/httpd.c | |||
@@ -734,7 +734,7 @@ static char *encodeString(const char *string) | |||
734 | while ((ch = *string++)) { | 734 | while ((ch = *string++)) { |
735 | // very simple check for what to encode | 735 | // very simple check for what to encode |
736 | if (isalnum(ch)) *p++ = ch; | 736 | if (isalnum(ch)) *p++ = ch; |
737 | else p += sprintf(p, "&#%d", (unsigned char) ch); | 737 | else p += sprintf(p, "&#%d;", (unsigned char) ch); |
738 | } | 738 | } |
739 | *p=0; | 739 | *p=0; |
740 | return out; | 740 | return out; |