Sure, here it is. The test blows up at line 14:
my $testc = $obj->cache( 'foo' );
which is when it first tries to instantiate a CHI cache using the Memory driver.
I suppose I could just turn off taint-checking on the test as a
temporary fix, but that doesn't solve the problem of why this error
occurs in the first place. There doesn't appear to be any tainted
data.
Mike
#!perl -T
use strict;
use warnings;
use Test::More tests => 4;
use_ok( 'CGI::Application::Plugin::CHI' );
main->cache_config( foo => { driver => 'Memory' } );
my $obj = bless { }, 'main';
my $testc = $obj->cache( 'foo' );
$testc->set( dog => 'snoopy' );
is( $testc->get( 'dog' ), 'snoopy' );
eval {
my $c = $obj->cache;
};
like( $@, qr/no default cache/ );
main->cache_default( 'foo' );
is( $obj->cache->get( 'dog' ), 'snoopy' );