Fix for bug 85833: show_bug.cgi (and probably others) now allow leading or trailing spaces in the bug id, to allow for user input error. This used to work, and recent bug validation changes broke it.

Patch by Jake Steenhagen <jake@acutex.net>
r= justdave@syndicomm.com
This commit is contained in:
justdave%syndicomm.com 2001-06-19 22:48:21 +00:00
Родитель c0fdceb543
Коммит a2bac692b3
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -235,7 +235,8 @@ sub ValidateBugID {
my ($id) = @_;
# Make sure the bug number is a positive integer.
$id =~ /^([1-9][0-9]*)$/
# Whitespace can be ignored because the SQL server will ignore it.
$id =~ /^\s*([1-9][0-9]*)\s*$/
|| DisplayError("The bug number is invalid.")
&& exit;