Package: bugs.debian.org Severity: normal Tags: patch I wanted to report a bug as containing spam via the web interface, and bugspam.cgi failed with "No valid bug number."
My hunch was that this might be related to the BTS having passed the 1,000,000 mark and a regexp possibly needing an update. So I cloned https://bugs.debian.org/debbugs-source/debbugs.git (not sure if this is the correct/production repo) and indeed: SOmething like the following would probably fix the issue: #v+ diff --git a/examples/debian/misc/bugspam.cgi b/examples/debian/misc/bugspam.cgi index 46bc17f..7830aee 100755 --- a/examples/debian/misc/bugspam.cgi +++ b/examples/debian/misc/bugspam.cgi @@ -16,7 +16,7 @@ sub quitcgi($;$) { } my $bug = param('bug') or quitcgi('No bug specfied', '400 Bad Request'); -quitcgi('No valid bug number', '400 Bad Request') unless $bug =~ /^\d{3,6}$/; +quitcgi('No valid bug number', '400 Bad Request') unless $bug =~ /^\d{3,7}$/; my $remote_host = remote_host or quitcgi("No remote host"); my $ok = param('ok'); if (not defined $ok) { #v- Cheers, gregor