summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rwxr-xr-xutil/vndb.pl2
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 734689ab..a38b7316 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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-]*$/ },
},
);