]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fix for bug 83619 - QuickSearch was crashing Netscape 4.76 and 4.77 on Unix
authorjake%acutex.net <>
Sat, 16 Jun 2001 03:16:59 +0000 (03:16 +0000)
committerjake%acutex.net <>
Sat, 16 Jun 2001 03:16:59 +0000 (03:16 +0000)
Patch by Andreas Franke <afranke@ags.uni-sb.de>

quicksearch.js

index 09515dff4a75ee2252f1df7ff958ccbcaf079b26..fa2c474e4f9bcf6dd238ee697c6d8020ac9cfabf 100644 (file)
@@ -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) {