Fix invalid HTML by adding footer before </body>
authorMarius Gavrilescu <marius@ieval.ro>
Sat, 30 Apr 2016 14:18:23 +0000 (15:18 +0100)
committerMarius Gavrilescu <marius@ieval.ro>
Sat, 30 Apr 2016 14:18:23 +0000 (15:18 +0100)
lib/App/Web/Oof.pm

index 0bd08dfc84eecbc60c99aefd8afd4e50c4090dcf..e7d93f5d856a10621d526b79a6a3194eb86130c4 100644 (file)
@@ -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.010154 seconds and 4 git commands to generate.