summaryrefslogtreecommitdiffstats
path: root/duplicates.cgi
diff options
context:
space:
mode:
authorburnus%gmx.de <>2003-04-29 03:29:34 +0200
committerburnus%gmx.de <>2003-04-29 03:29:34 +0200
commit7e6f8dbfebfeda16a14f951370f31ee5fad9e0ee (patch)
tree446d2dff00188b5be09540c53be736e55338977f /duplicates.cgi
parente5086e905c8248309f4918e2d32cfa160f7e7156 (diff)
downloadbugzilla-7e6f8dbfebfeda16a14f951370f31ee5fad9e0ee.tar.gz
bugzilla-7e6f8dbfebfeda16a14f951370f31ee5fad9e0ee.tar.xz
Bug 200198 - user-error.html.tmpl's use [% changedsince %] instead of $changedsince
r=gerv, a=justdave
Diffstat (limited to 'duplicates.cgi')
-rwxr-xr-xduplicates.cgi18
1 files changed, 9 insertions, 9 deletions
diff --git a/duplicates.cgi b/duplicates.cgi
index 64a3f7ab3..dc65ef502 100755
--- a/duplicates.cgi
+++ b/duplicates.cgi
@@ -137,6 +137,15 @@ while (my ($key, $value) = each %count) {
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;
@@ -159,15 +168,6 @@ if (!tie(%before, 'AnyDBM_File', "data/duplicates/dupes$whenever",
$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;