summaryrefslogtreecommitdiff
path: root/kontakt.cgi
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-03-28 16:19:33 +0100
committerJonas Smedegaard <dr@jones.dk>2024-03-28 16:19:33 +0100
commit1eaaf916c4c77e5b34e5b7a12b48569cc267d844 (patch)
treed92d98ddd57c98a0a7d39bc6e259d47c8d1f7f3a /kontakt.cgi
parenteab3ce492a8e371a9a51aa512d95dcbd9ff0fddd (diff)
simplify postnr validation
Diffstat (limited to 'kontakt.cgi')
-rwxr-xr-xkontakt.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/kontakt.cgi b/kontakt.cgi
index 694aabe..8a461fb 100755
--- a/kontakt.cgi
+++ b/kontakt.cgi
@@ -34,7 +34,7 @@ my $form = CGI::FormBuilder->new(
kommentar
/],
validate => {
- postnr => '/^([Dd][Kk])?.?[0-9-]{4}$/',
+ postnr => 'INT',
#email => 'MAIL', # Built-in email validation is too simplistic
email => '/^[+_A-Za-z0-9-]+(\.[+_A-Za-z0-9-]+)*@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(\.[_A-Za-z0-9-]+)$/',
antal => 'INT',