Commit 7de34a38 authored by jake%acutex.net's avatar jake%acutex.net

Fix for bug 85832 - QuickSearch should strip leading and trailing spaces.

Patch by Andreas Franke <afranke@ags.uni-sb.de>
parent 4fdd6b8c
......@@ -708,6 +708,9 @@ function QuickSearch ()
{
var input = document.f.id.value;
//remove leading and trailing whitespace
input = input.replace(/^[\s]+/,"").replace(/[\s]+$/,"");
if (input == "")
{
//once this _is_ on http://bugzilla.mozilla.org, it should just return;
......@@ -733,6 +736,10 @@ function QuickSearch ()
function LoadQuery() {
var input = document.f.id.value;
//remove leading and trailing whitespace
input = input.replace(/^[\s]+/,"").replace(/[\s]+$/,"");
Search(bugzilla+"query.cgi",input,false);
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment