Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 83781 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-2 / +4 lines)
Line  Link Here
0
-- a/Bugzilla/Search/Quicksearch.pm
0
++ b/Bugzilla/Search/Quicksearch.pm
Lines 130-136 sub quicksearch { Link Here
130
    $searchstring =~ s/(^[\s,]+|[\s,]+$)//g;
130
    $searchstring =~ s/(^[\s,]+|[\s,]+$)//g;
131
    ThrowUserError('buglist_parameters_required') unless ($searchstring);
131
    ThrowUserError('buglist_parameters_required') unless ($searchstring);
132
132
133
    if ($searchstring =~ m/^[0-9,\s]*$/) {
133
    if ($searchstring =~ m/^#?[0-9,\s]*$/) {
134
        _bug_numbers_only($searchstring);
134
        _bug_numbers_only($searchstring);
135
    }
135
    }
136
    else {
136
    else {
Lines 286-291 sub _bug_numbers_only { Link Here
286
    my $cgi = Bugzilla->cgi;
286
    my $cgi = Bugzilla->cgi;
287
    # Allow separation by comma or whitespace.
287
    # Allow separation by comma or whitespace.
288
    $searchstring =~ s/[,\s]+/,/g;
288
    $searchstring =~ s/[,\s]+/,/g;
289
    # Trim the leading # if used.
290
    $searchstring =~ s/^#//;
289
291
290
    if ($searchstring !~ /,/) {
292
    if ($searchstring !~ /,/) {
291
        # Single bug number; shortcut to show_bug.cgi.
293
        # Single bug number; shortcut to show_bug.cgi.

Return to bug 83781