summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2019-02-10 15:21:56 -0500
committerJune McEnroe <june@causal.agency>2019-02-10 15:21:56 -0500
commit0347fcc3a23c5188e75dc92a372cf2484228ea2a (patch)
tree066b469a763971f6b0b281079f63f05c2dbed848 /bin
parentSet git commit.verbose (diff)
downloadsrc-0347fcc3a23c5188e75dc92a372cf2484228ea2a.tar.gz
src-0347fcc3a23c5188e75dc92a372cf2484228ea2a.zip
Actually do HTML &quot; escaping
Diffstat (limited to 'bin')
-rw-r--r--bin/hi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hi.c b/bin/hi.c
index f40cb95e..e8673e44 100644
--- a/bin/hi.c
+++ b/bin/hi.c
@@ -446,7 +446,7 @@ ircOutput(const char *opts[], enum Class class, const char *str, size_t len) {
 
 static void htmlEscape(const char *str, size_t len) {
 	while (len) {
-		size_t run = strcspn(str, "&<>");
+		size_t run = strcspn(str, "\"&<>");
 		if (run > len) run = len;
 		switch (str[0]) {
 			break; case '"': run = 1; printf("&quot;");