From: gerv%gerv.net <> Date: Fri, 15 Dec 2000 01:39:33 +0000 (+0000) Subject: Fixed problem with ranges in regexps that I dreamt about a few nights ago. X-Git-Tag: bugzilla-2.12~132 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6fb4c1bbf40248f37cf88be7b0c7e9371520b9c3;p=thirdparty%2Fbugzilla.git Fixed problem with ranges in regexps that I dreamt about a few nights ago. --- diff --git a/duplicates.cgi b/duplicates.cgi index a45da6bb2a..57a5b05dd0 100755 --- a/duplicates.cgi +++ b/duplicates.cgi @@ -62,7 +62,7 @@ else } # Check for changedsince param, and see if it's a positive integer -if (defined(param("changedsince")) && param("changedsince") =~ /^\d{1,4}$/) +if (defined(param("changedsince")) && param("changedsince") =~ /^\d{1-4}$/) { $changedsince = param("changedsince"); } @@ -75,7 +75,7 @@ else $before = &days_ago($changedsince); # check for max rows parameter -if (defined(param("maxrows")) && param("maxrows") =~ /^\d{1,4}$/) +if (defined(param("maxrows")) && param("maxrows") =~ /^\d{1-4}$/) { $maxrows = param("maxrows"); }