characters encoded as html should have a trailing semicolon
authorEric Andersen <andersen@codepoet.org>
Thu, 23 Jun 2005 05:51:48 +0000 (05:51 -0000)
committerEric Andersen <andersen@codepoet.org>
Thu, 23 Jun 2005 05:51:48 +0000 (05:51 -0000)
to be interpreted properly

networking/httpd.c

index 83ded53309b2080c0a67829ac293f30aee31f0be..94fcfc8c18bcd21512f17787659321bb70623e6c 100644 (file)
@@ -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;