]> iEval git - app-web-oof.git/blobdiff - lib/App/Web/Oof.pm
Fix invalid HTML by adding footer before </body>
[app-web-oof.git] / lib / App / Web / Oof.pm
index 93ab4fe40d62e3096a8d9dae9cef2b947897a581..e7d93f5d856a10621d526b79a6a3194eb86130c4 100644 (file)
@@ -6,7 +6,7 @@ use warnings;
 use utf8;
 use parent qw/Plack::Component/;
 
-our $VERSION = '0.000_003';
+our $VERSION = '0.000_004';
 
 use DBIx::Simple;
 use File::Slurp;
@@ -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,</body>,$footer</body>, if $res->[0] == 200;
                                $res;
                        }
                };
This page took 0.015494 seconds and 4 git commands to generate.