gforge-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-commits] gforge/common/search SearchQuery.class,1.1,1.2


From: gsmet
Subject: [Gforge-commits] gforge/common/search SearchQuery.class,1.1,1.2
Date: Wed, 18 Feb 2004 03:45:24 -0600

Update of /cvsroot/gforge/gforge/common/search
In directory db.perdue.net:/tmp/cvs-serv23218/common/search

Modified Files:
        SearchQuery.class 
Log Message:
fixed the %%% search bug

Index: SearchQuery.class
===================================================================
RCS file: /cvsroot/gforge/gforge/common/search/SearchQuery.class,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- SearchQuery.class   9 Feb 2004 10:22:21 -0000       1.1
+++ SearchQuery.class   18 Feb 2004 09:45:21 -0000      1.2
@@ -93,6 +93,7 @@
                        $this->searchId = (int) $words;
                } else {
                        $words = htmlspecialchars($words);
+                       $words = strtr($words, array('%' => '', '_' => ''));
                        $words = preg_replace("/[ \t]+/", ' ', $words);
                        if(strlen($words) < 3) {
                                $this->setError('error_search_minlength');





reply via email to

[Prev in Thread] Current Thread [Next in Thread]