summary refs log tree commit diff
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
commit6afa8baea32dd02240ce674e77e6922ba0abdbc5 (patch)
tree5b4c0765534a58d4889be45916fdab475f3e471b
parentSet git commit.verbose (diff)
downloadsrc-6afa8baea32dd02240ce674e77e6922ba0abdbc5.tar.gz
src-6afa8baea32dd02240ce674e77e6922ba0abdbc5.zip
Actually do HTML &quot; escaping
-rw-r--r--bin/hi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hi.c b/bin/hi.c
index de71f726..2bb626e7 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;");