]> jfr.im git - irc/unrealircd/unrealircd.git/commitdiff
Allow slashes in vhost/chghost/sethost/.. (but not through DNS)
authorBram Matthys <redacted>
Tue, 11 Sep 2018 18:25:32 +0000 (20:25 +0200)
committerBram Matthys <redacted>
Tue, 11 Sep 2018 18:25:32 +0000 (20:25 +0200)
src/s_misc.c

index e969e4a46e0961f7ef69efdc3d1ab1366a2ba68f..e3887aadffa019dee68850f1770329c03138e41c 100644 (file)
@@ -802,7 +802,7 @@ int valid_host(char *host)
                return 0; /* too long hosts are invalid too */
 
        for (p=host; *p; p++)
-               if (!isalnum(*p) && (*p != '_') && (*p != '-') && (*p != '.') && (*p != ':'))
+               if (!isalnum(*p) && (*p != '_') && (*p != '-') && (*p != '.') && (*p != ':') && (*p != '/'))
                        return 0;
 
        return 1;