diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-06-08 17:17:53 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-06-08 17:17:53 +0000 |
commit | d80557672c2d5e70c47376ea3b9e750664ff36c3 (patch) | |
tree | c10b6657f4b632e367324b5cb3dc30f3277f42ec /modules | |
parent | a448f5a9b46c5a5e5bcd64072a420bef33161a44 (diff) | |
download | brdo-d80557672c2d5e70c47376ea3b9e750664ff36c3.tar.gz brdo-d80557672c2d5e70c47376ea3b9e750664ff36c3.tar.bz2 |
- Made it possible to link search results. Patch by Ax.
- Removed some high ASCII characters from the code. Patch by Ax.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/search.module | 4 | ||||
-rw-r--r-- | modules/search/search.module | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/modules/search.module b/modules/search.module index 186908ecf..31595ec5b 100644 --- a/modules/search.module +++ b/modules/search.module @@ -219,7 +219,7 @@ function update_index($search_array) { $wordlist = preg_replace("'<[\/\!]*?[^<>]*?>'si", "", $wordlist); // Remove punctuation and stuff - $wordlist = preg_replace("'(»|«|!|¡|%|,|:|;|\(|\)|\&|\"|\'|\.|-|\/|\?|\\\)'", "", $wordlist); + $wordlist = preg_replace("'(\xBB|\xAB|!|\xA1|%|,|:|;|\(|\)|\&|\"|\'|\.|-|\/|\?|\\\)'", "", $wordlist); // Strip out (now mangled) http and tags. $wordlist = preg_replace("'http\w+'", "", $wordlist); @@ -361,7 +361,7 @@ function search_view($keys = NULL) { } function search_page() { - $keys = $_POST["keys"]; + $keys = isset($_GET["keys"]) ? $_GET["keys"] : $_POST["keys"]; switch (arg(1)) { case "help": diff --git a/modules/search/search.module b/modules/search/search.module index 186908ecf..31595ec5b 100644 --- a/modules/search/search.module +++ b/modules/search/search.module @@ -219,7 +219,7 @@ function update_index($search_array) { $wordlist = preg_replace("'<[\/\!]*?[^<>]*?>'si", "", $wordlist); // Remove punctuation and stuff - $wordlist = preg_replace("'(»|«|!|¡|%|,|:|;|\(|\)|\&|\"|\'|\.|-|\/|\?|\\\)'", "", $wordlist); + $wordlist = preg_replace("'(\xBB|\xAB|!|\xA1|%|,|:|;|\(|\)|\&|\"|\'|\.|-|\/|\?|\\\)'", "", $wordlist); // Strip out (now mangled) http and tags. $wordlist = preg_replace("'http\w+'", "", $wordlist); @@ -361,7 +361,7 @@ function search_view($keys = NULL) { } function search_page() { - $keys = $_POST["keys"]; + $keys = isset($_GET["keys"]) ? $_GET["keys"] : $_POST["keys"]; switch (arg(1)) { case "help": |