Remove slashes in search terms
authorMichael Ang <mang@archive.org>
Wed, 4 Nov 2009 22:34:05 +0000 (22:34 +0000)
committerMichael Ang <mang@archive.org>
Wed, 4 Nov 2009 22:34:05 +0000 (22:34 +0000)
GnuBook/GnuBook.js

index 5a2dc39..63700e4 100644 (file)
@@ -2093,6 +2093,7 @@ GnuBook.prototype.getPageWidth2UP = function(index) {
 // search()
 //______________________________________________________________________________
 GnuBook.prototype.search = function(term) {
+    term = term.replace(/\//g, ' '); // strip slashes
     this.searchTerm = term;
     $('#GnuBookSearchScript').remove();
        var script  = document.createElement("script");