[BusyBox-cvs] svn commit: trunk/busybox/networking

andersen at busybox.net andersen at busybox.net
Thu Jun 23 05:51:49 UTC 2005


Author: andersen
Date: 2005-06-22 23:51:48 -0600 (Wed, 22 Jun 2005)
New Revision: 10564

Log:
characters encoded as html should have a trailing semicolon
to be interpreted properly


Modified:
   trunk/busybox/networking/httpd.c


Changeset:
Modified: trunk/busybox/networking/httpd.c
===================================================================
--- trunk/busybox/networking/httpd.c	2005-06-23 05:09:05 UTC (rev 10563)
+++ trunk/busybox/networking/httpd.c	2005-06-23 05:51:48 UTC (rev 10564)
@@ -734,7 +734,7 @@
   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;




More information about the busybox-cvs mailing list