From 3efa51d9433f4e58f1bad28ac92a35dea86ca850 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 23 Jun 2005 05:51:48 +0000 Subject: characters encoded as html should have a trailing semicolon to be interpreted properly --- networking/httpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'networking/httpd.c') 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; -- cgit v1.2.3