summary refs log tree commit diff
path: root/dispatch.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-11-13 01:46:25 -0500
committerJune McEnroe <june@causal.agency>2020-11-13 01:46:25 -0500
commitb2403c529ced224dd68add4306e17c030fa94e44 (patch)
tree1f364fe5a53732c38f772ecf542f63e76d101838 /dispatch.c
parentCheck bounds of ClientHello extensions length (diff)
downloadpounce-b2403c529ced224dd68add4306e17c030fa94e44.tar.gz
pounce-b2403c529ced224dd68add4306e17c030fa94e44.zip
Disallow / anywhere in server name
Diffstat (limited to 'dispatch.c')
-rw-r--r--dispatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dispatch.c b/dispatch.c
index 624dd40..f4cda87 100644
--- a/dispatch.c
+++ b/dispatch.c
@@ -296,7 +296,7 @@ int main(int argc, char *argv[]) {
 			peek.len = len;
 
 			char *name = serverName();
-			if (!name || name[0] == '.' || name[0] == '/') {
+			if (!name || name[0] == '.' || strchr(name, '/')) {
 				alert(event.ptr[i].fd);
 				eventRemove(i);
 				continue;
n='3' class='logmsg'> This simplifies some things, adds support for line number tag definitions, and should enable combining htagml with other preprocessors in the future. 2021-01-12Split fields by tab onlyJune McEnroe Also don't fail hard on non-forward-search definitions. 2021-01-12List both Makefile and html.sh under README.7June McEnroe 2021-01-12Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe neovim is laggy as hell in my OpenBSD VM, so I switched to vi so I could type without getting frustrated. 2021-01-09Add c -t flag to print expression typeJune McEnroe Also add missing float case. 2021-01-05Update taglineJune McEnroe