projects
/
irspy-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
248afdf
)
Liberalise hostname regexp, I think.
author
Mike Taylor
<mike@miketaylor.org.uk>
Tue, 20 Jul 2010 13:45:40 +0000
(14:45 +0100)
committer
Mike Taylor
<mike@miketaylor.org.uk>
Tue, 20 Jul 2010 13:45:40 +0000
(14:45 +0100)
web/htdocs/details/edit.mc
patch
|
blob
|
history
diff --git
a/web/htdocs/details/edit.mc
b/web/htdocs/details/edit.mc
index
f6ab56d
..
e0cb6e7
100644
(file)
--- a/
web/htdocs/details/edit.mc
+++ b/
web/htdocs/details/edit.mc
@@
-70,7
+70,7
@@
if (!defined $id) {
print qq[<p class="error">
Please specify name, protocol, host, port and database name.</p>\n];
undef $update;
- } elsif ($host !~ /^\w+\.[\w.]*\w$/i) {
+ } elsif ($host !~ /^[\w-]+\.[\w.-]*\w$/i) {
print qq[<p class="error">
This host name is not valid.</p>\n];
undef $update;