diff options
author | Yorhel <git@yorhel.nl> | 2011-04-30 10:35:53 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2011-04-30 10:35:53 +0200 |
commit | a3ff39b6269cb7114f0edee6a1f5fdb6dd163d40 (patch) | |
tree | acf931218cb4cca81c2db058e2f400d93ce7c939 /util/vndb.pl | |
parent | 9b6da49f834d6f52604e460f14ca2cc690973f67 (diff) |
Bugfix: Don't allow unicode numbers as 'int' in formValidate
Stuff like "168" went through earlier, but couldn't be interpreted by
either perl or postgresql.
Diffstat (limited to 'util/vndb.pl')
-rwxr-xr-x | util/vndb.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/vndb.pl b/util/vndb.pl index b6056dd4..765138fe 100755 --- a/util/vndb.pl +++ b/util/vndb.pl @@ -52,7 +52,7 @@ TUWF::set( mail => { regex => qr/^[^@<>]+@[^@.<>]+(?:\.[^@.<>]+)+$/ }, url => { regex => qr/^(http|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-\.,@?^=%&:\/~\+#]*[\w\-\@?^=%&\/~\+#])?$/ }, asciiprint => { regex => qr/^[\x20-\x7E]*$/ }, - int => { regex => qr/^-?\d+$/ }, + int => { regex => qr/^-?[0-9]+$/ }, pname => { regex => qr/^[a-z0-9-]*$/ }, }, ); |