diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rwxr-xr-x | util/vndb.pl | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -25,6 +25,7 @@ - Bugfix: Properly format future dates on my vn list - Bugfix: Properly position the sub-tabs on VN page without tags - Bugfix: Forgot to make two JS strings translatable + - Bugfix: Don't allow unicode numbers as 'int' in formValidate 2.19 - 2011-03-30 - Character database: 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-]*$/ }, }, ); |