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

webredir module should not depend on curl (fix symbol not found error)

This commit is contained in:
Bram Matthys
2019-12-11 19:54:17 +01:00
parent 9a96c32706
commit 9fc508483f
+1 -1
View File
@@ -136,7 +136,7 @@ int webredir_config_test(ConfigFile *cf, ConfigEntry *ce, int type, int *errs)
cep->ce_fileptr->cf_filename, cep->ce_varlinenum, cep->ce_varname);
errors++;
}
if (!url_is_valid(cep->ce_vardata) || !strcmp(cep->ce_vardata, "https://..."))
if (!strstr(cep->ce_vardata, "://") || !strcmp(cep->ce_vardata, "https://..."))
{
config_error("%s:%i: set::webredir::url needs to be a valid URL",
cep->ce_fileptr->cf_filename, cep->ce_varlinenum);