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:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user