From: Marius Gavrilescu Date: Sat, 30 Apr 2016 14:18:23 +0000 (+0100) Subject: Fix invalid HTML by adding footer before X-Git-Tag: 0.000_005~4 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=0c3c4e708d0264e803583a4ac497e8e8e519b128;p=app-web-oof.git Fix invalid HTML by adding footer before --- diff --git a/lib/App/Web/Oof.pm b/lib/App/Web/Oof.pm index 0bd08df..e7d93f5 100644 --- a/lib/App/Web/Oof.pm +++ b/lib/App/Web/Oof.pm @@ -255,7 +255,7 @@ sub app { my $app = shift; sub { my $res = $app->(@_); - push @{$res->[2]}, $footer if $res->[0] == 200; + $res->[2][0] =~ s,,$footer, if $res->[0] == 200; $res; } };