Permalink
Browse files

Update Application.pm - Update dump_html()

Ensure dump_html() returns valid html.
  • Loading branch information...
1 parent fd7ed9b commit e503df08aa976e9a29a22beca01e3f0d9b0cfeae @MartinMcGrath committed Feb 19, 2014
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/CGI/Application.pm
View
@@ -353,7 +353,7 @@ sub dump {
sub dump_html {
my $self = shift;
my $query = $self->query();
- my $output = '';
+ my $output = $query->start_html;
# Dump run-mode
my $current_runmode = $self->get_current_runmode();
@@ -374,7 +374,7 @@ sub dump_html {
);
}
$output .= "</ol>\n";
-
+ $output .= $query->end_html();
return $output;
}

1 comment on commit e503df0

Collaborator

markstos commented on e503df0 Feb 19, 2014

This patch seems fine to me. Returning valid HTML looks like an improvement.

Please sign in to comment.