diff options
author | Yorhel <git@yorhel.nl> | 2011-02-02 20:19:09 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2011-02-02 20:19:09 +0100 |
commit | d8af1c3163cbcf296eb2c37f1e1a8b073eeb7e7d (patch) | |
tree | 136c45afd0597845c1d86145fd622a5e0eeed824 | |
parent | 457f997845624653199d1ccd1e5b6bfe214541e3 (diff) |
kv_validate(): Actually set default value of rmwhitespace to true
-rw-r--r-- | lib/TUWF/Misc.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/TUWF/Misc.pm b/lib/TUWF/Misc.pm index ede7686..aab42f7 100644 --- a/lib/TUWF/Misc.pm +++ b/lib/TUWF/Misc.pm @@ -63,7 +63,7 @@ sub _validate { # value, \%templates, \%rules croak "Template $r->{template} not defined." if $r->{template} && !$t->{$r->{template}}; $r->{required}++ if not exists $r->{required}; - $r->{whitespace}++ if not exists $r->{whitespace}; + $r->{rmwhitespace}++ if not exists $r->{rmwhitespace}; # remove whitespace if($v && $r->{rmwhitespace}) { |