summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjake%acutex.net <>2001-06-16 05:16:59 +0200
committerjake%acutex.net <>2001-06-16 05:16:59 +0200
commitccd9d1728bee34c894a92a49054eac5f7f4c065d (patch)
treeac27f9068387db60ceff58f2970b8cb3fc08025e
parent4ac17e8c4e5352d33150508b6a994b30d5845a94 (diff)
downloadbugzilla-ccd9d1728bee34c894a92a49054eac5f7f4c065d.tar.gz
bugzilla-ccd9d1728bee34c894a92a49054eac5f7f4c065d.tar.xz
Fix for bug 83619 - QuickSearch was crashing Netscape 4.76 and 4.77 on Unix
Patch by Andreas Franke <afranke@ags.uni-sb.de>
-rw-r--r--quicksearch.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/quicksearch.js b/quicksearch.js
index 09515dff4..fa2c474e4 100644
--- a/quicksearch.js
+++ b/quicksearch.js
@@ -72,8 +72,10 @@ function isPrefix(s1, s2) {
}
function member(s, l) {
- return (l.length > 0)
- && ((s == l[0]) || member(s, l.slice(1)));
+ for (var i=0; i<l.length; i++) {
+ if (l[i] == s) return true;
+ }
+ return false;
}
function add(s, l) {