diff options
-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; |