projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e953f9
)
Added missing validation function
author
Jamie Cameron
<jcameron@webmin.com>
Mon, 7 Dec 2009 22:06:21 +0000
(14:06 -0800)
committer
Jamie Cameron
<jcameron@webmin.com>
Mon, 7 Dec 2009 22:06:21 +0000
(14:06 -0800)
zones/forms-lib.pl
patch
|
blob
|
history
diff --git
a/zones/forms-lib.pl
b/zones/forms-lib.pl
index
70d35eb
..
854d861
100755
(executable)
--- a/
zones/forms-lib.pl
+++ b/
zones/forms-lib.pl
@@
-633,3
+633,8
@@
sub validate_zone_router
return &check_ipaddress($_[0]) ? undef : $text{'create_erouter'};
}
+sub validate_zone_terminal
+{
+return $_[0] =~ /^\S+$/ ? undef : $text{'create_eterminal'};
+}
+