delete $count{$key} if $sortvisible && (lsearch(\@buglist, $key) == -1);
}
+my $origmaxrows = $maxrows;
+detaint_natural($maxrows)
+ || ThrowUserError("invalid_maxrows", { maxrows => $origmaxrows});
+
+my $origchangedsince = $changedsince;
+detaint_natural($changedsince)
+ || ThrowUserError("invalid_changedsince",
+ { changedsince => $origchangedsince });
+
# Try and open the database from "changedsince" days ago
my $dobefore = 0;
my %delta;
$dobefore = 1;
}
-my $origmaxrows = $maxrows;
-detaint_natural($maxrows)
- || ThrowUserError("invalid_maxrows", { maxrows => $origmaxrows});
-
-my $origchangedsince = $changedsince;
-detaint_natural($changedsince)
- || ThrowUserError("invalid_changedsince",
- { changedsince => $origchangedsince });
-
my @bugs;
my @bug_ids;
[% ELSIF error == "no_dupe_stats_error_whenever" %]
[% title = "Error Reading Previous Dupes File" %]
- An error occurred opening $changedsince days ago ($whenever)'s dupes file:
+ An error occurred opening [% changedsince FILTER html %] days ago
+ ([% whenever FILTER html %])'s dupes file:
[% error_msg FILTER html %].
[% ELSIF error == "no_dupe_stats_error_yesterday" %]