Commit afd422b8 authored by Steven Wittens's avatar Steven Wittens

- #15172: Old search.module punctuation stripping error.

parent 0b5ad81d
......@@ -240,7 +240,7 @@ function update_index($search_array) {
if (db_num_rows($result)) {
// Results were found. Look through the nodes we just selected.
while ($node = db_fetch_array ($result)) {
while ($node = db_fetch_array($result)) {
// Trash any existing entries in the search index for this node,
// in case it is a modified node.
......@@ -254,7 +254,7 @@ function update_index($search_array) {
$wordlist = preg_replace("'<[\/\!]*?[^<>]*?>'si", '', $wordlist);
// Remove punctuation/special characters (same rule as do_search()).
$keys = preg_replace("'(!|%|,|:|;|\(|\)|\&|\"|\'|\.|-|\/|\?|\\\)'", '', $keys);
$wordlist = preg_replace("'(!|%|,|:|;|\(|\)|\&|\"|\'|\.|-|\/|\?|\\\)'", '', $wordlist);
// Strip out (now mangled) http and tags.
$wordlist = preg_replace("'http\w+'", '', $wordlist);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment