summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuglist.cgi13
1 files changed, 12 insertions, 1 deletions
diff --git a/buglist.cgi b/buglist.cgi
index 3ac68c4df..f6d54e4a3 100755
--- a/buglist.cgi
+++ b/buglist.cgi
@@ -238,7 +238,18 @@ if {[info exists FORM(sql)]} {
}
if {[lookup FORM changedin] != ""} {
- qadd "and to_days(now()) - to_days(bugs.delta_ts) <= $FORM(changedin) "
+ set c [string trim $FORM(changedin)]
+ if {$c != ""} {
+ if {![regexp {^[0-9]*$} $c]} {
+ puts "
+The 'changed in last ___ days' field must be a simple number. You entered
+\"$c\", which doesn't cut it.
+
+Click the Back button and try again."
+ exit
+ }
+ qadd "and to_days(now()) - to_days(bugs.delta_ts) <= $FORM(changedin) "
+ }
}
}