summaryrefslogtreecommitdiff
path: root/lib/VNDB/Handler
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2013-04-17 19:06:16 +0200
committerYorhel <git@yorhel.nl>2013-04-17 19:06:16 +0200
commitaf1571a78652ef24f17cb38627902261c2af170d (patch)
treeed1bc0265627e6cad181608306b34fbd24cfaa43 /lib/VNDB/Handler
parentf8b85e6d0aa29e6d670df9f19af07d4f4a6e29b2 (diff)
Fix form validation bug on /u*/posts + disallow space in email field
Diffstat (limited to 'lib/VNDB/Handler')
-rw-r--r--lib/VNDB/Handler/Users.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/VNDB/Handler/Users.pm b/lib/VNDB/Handler/Users.pm
index 7397f43a..5738d964 100644
--- a/lib/VNDB/Handler/Users.pm
+++ b/lib/VNDB/Handler/Users.pm
@@ -434,6 +434,7 @@ sub posts {
my $f = $self->formValidate(
{ get => 'p', required => 0, default => 1, template => 'int' }
);
+ return $self->resNotFound if $f->{_err};
my($posts, $np) = $self->dbPostGet(uid => $uid, hide => 1, what => 'thread', page => $f->{p}, sort => 'date', reverse => 1);