summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2020-05-08 01:27:15 +0200
committerLeah Neukirchen <leah@vuxu.org>2020-05-08 01:27:15 +0200
commitc27312b4b3f091f2fc189a8aa5c55182a62d4fb5 (patch)
tree574819d115e37963d83b1955c5ec1ca267762fb7
parent366cb1e744ae916a6cb2409bb3cfe359a5b03a4a (diff)
downloadhittpd-c27312b4b3f091f2fc189a8aa5c55182a62d4fb5.tar.gz
hittpd-c27312b4b3f091f2fc189a8aa5c55182a62d4fb5.tar.xz
hittpd-c27312b4b3f091f2fc189a8aa5c55182a62d4fb5.zip
escape # in urls (else potentially HTML anchors)
-rw-r--r--hittpd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hittpd.c b/hittpd.c
index daf2c1f..7b97042 100644
--- a/hittpd.c
+++ b/hittpd.c
@@ -344,6 +344,7 @@ print_urlencoded(FILE *stream, char *s)
 		case '=':
 		case '&':
 		case '"':
+		case '#':
 		case '<':
 		case '>':
 		case '%':