Skip to content

Commit

Permalink
fixed recursion bug in inflate command
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 14, 2013
1 parent a740baf commit ca94c9c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Mojolicious/Command/inflate.pm
Expand Up @@ -15,7 +15,8 @@ sub run {
my $app = $self->app;
my $loader = Mojo::Loader->new;
for my $class (@{$app->renderer->classes}, @{$app->static->classes}) {
while (my ($name, $data) = each %{$loader->data($class)}) {
for my $name (keys %{$loader->data($class)}) {
my $data = $loader->data($class, $name);
$all{$name}
= $loader->is_binary($class, $name) ? $data : encode('UTF-8', $data);
}
Expand Down

0 comments on commit ca94c9c

Please sign in to comment.