aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2018-03-05 13:46:41 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2018-03-05 13:46:41 -0800
commit6ce7c3e8fdd27a40a8e9afe25360f8163c4a9371 (patch)
tree4ab4eddb3b1278a32fd41d591e235986df46fd74
parentbuglist: tell taint check that bugid is safe. (diff)
downloadbugzilla-6ce7c3e8fdd27a40a8e9afe25360f8163c4a9371.tar.gz
bugzilla-6ce7c3e8fdd27a40a8e9afe25360f8163c4a9371.tar.bz2
bugzilla-6ce7c3e8fdd27a40a8e9afe25360f8163c4a9371.zip
Bugzilla/Search: force validation of timestamp/date.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rw-r--r--Bugzilla/Search.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/Search.pm b/Bugzilla/Search.pm
index 646f949f5..0694dd98c 100644
--- a/Bugzilla/Search.pm
+++ b/Bugzilla/Search.pm
@@ -2169,7 +2169,9 @@ sub _timestamp_translate {
my $value = $args->{value};
my $dbh = Bugzilla->dbh;
- return if $value !~ /^(?:[\+\-]?\d+[hdwmy]s?|now)$/i;
+ # Force parsing of all dates & times, so that we filter weird values out
+ # from users.
+ #return if $value !~ /^(?:[\+\-]?\d+[hdwmy]s?|now)$/i;
$value = SqlifyDate($value);
# By default, the time is appended to the date, which we don't always want.