From: Mike Taylor Date: Tue, 20 Jul 2010 13:45:40 +0000 (+0100) Subject: Liberalise hostname regexp, I think. X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=570b57305c273a1d71e86fd44c50fb27d42aefbd;p=irspy-moved-to-github.git Liberalise hostname regexp, I think. --- diff --git a/web/htdocs/details/edit.mc b/web/htdocs/details/edit.mc index f6ab56d..e0cb6e7 100644 --- a/web/htdocs/details/edit.mc +++ b/web/htdocs/details/edit.mc @@ -70,7 +70,7 @@ if (!defined $id) { print qq[

Please specify name, protocol, host, port and database name.

\n]; undef $update; - } elsif ($host !~ /^\w+\.[\w.]*\w$/i) { + } elsif ($host !~ /^[\w-]+\.[\w.-]*\w$/i) { print qq[

This host name is not valid.

\n]; undef $update;