summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2011-04-30 10:35:53 +0200
committerYorhel <git@yorhel.nl>2011-04-30 10:35:53 +0200
commita3ff39b6269cb7114f0edee6a1f5fdb6dd163d40 (patch)
treeacf931218cb4cca81c2db058e2f400d93ce7c939
parent9b6da49f834d6f52604e460f14ca2cc690973f67 (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.
-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-]*$/ },
},
);