1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-10 22:23:12 +02:00

Allow slashes in vhost/chghost/sethost/.. (but not through DNS)

This commit is contained in:
Bram Matthys
2018-09-11 20:25:32 +02:00
parent 8738c42b82
commit 402958a3c6
+1 -1
View 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;