diff options
author | Yorhel <git@yorhel.nl> | 2020-03-01 12:27:59 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2020-03-01 12:28:01 +0100 |
commit | 52166c333129ab7e48bd4cd6a2c94b2bcf1a081d (patch) | |
tree | f0a16e271060f154116fffe4d3e0d0d277ab6fc7 /lib/VNWeb/Validation.pm | |
parent | 8e980b80f1f41f26b120ce3ddff4ac6557812826 (diff) |
VNWeb::Validation::form_changed(): FIXUP: Don't mix up arguments from past calls
Wow, that was bad. $schema was remembered across calls, causing all
sorts of mayhem. https://vndb.org/t2520.364
Diffstat (limited to 'lib/VNWeb/Validation.pm')
-rw-r--r-- | lib/VNWeb/Validation.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VNWeb/Validation.pm b/lib/VNWeb/Validation.pm index e17f7e20..d65b5a9a 100644 --- a/lib/VNWeb/Validation.pm +++ b/lib/VNWeb/Validation.pm @@ -120,7 +120,7 @@ sub _eq_deep { # ($b), using the normalization defined in $schema. The $schema must validate. sub form_changed { my($schema, $a, $b) = @_; - sub norm { + my sub norm { my $v = $schema->validate($_[0]); if($v->err) { require Data::Dumper; |