Permalink
Browse files

released 0.17

  • Loading branch information...
1 parent 5d35211 commit 30864b70ba21ecf02062e798e0813d4235b6ade8 typester committed Apr 9, 2008
Showing with 5 additions and 2 deletions.
  1. +3 −0 Changes
  2. +2 −2 lib/Catalyst/Plugin/FormValidator/Simple/Auto.pm
View
@@ -1,5 +1,8 @@
Revision history for Perl module Catalyst::Plugin::FormValidator::Simple::Auto
+0.17 2008-04-09T18:57:31+09:00
+ - use local when set $YAML::UseAliases
+
0.16 2008-04-09T16:24:45+09:00
- support yaml aliases (Reported by Nakane)
@@ -8,7 +8,7 @@ use UNIVERSAL::isa;
use YAML;
use FormValidator::Simple;
-our $VERSION = '0.16';
+our $VERSION = '0.17';
__PACKAGE__->mk_accessors(qw/validator_profile/);
@@ -133,7 +133,7 @@ sub setup {
if ( $config->{profiles} and ref $config->{profiles} ne 'HASH' ) {
my $profiles = eval {
no warnings 'once';
- $YAML::UseAliases = 0;
+ local $YAML::UseAliases = 0;
YAML::Load( YAML::Dump( YAML::LoadFile( $config->{profiles} ) ) ); # XXX: remove yaml aliases
};
Catalyst::Exception->throw( message => __PACKAGE__ . qq/: $@/ ) if $@;

0 comments on commit 30864b7

Please sign in to comment.