From 62835f1804e53b7d2d6c334d808d6278e80b7b0c Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 24 Jan 2024 13:47:55 +0100 Subject: [PATCH] fixes #2091 search for words, no longer remove _ and - --- include/functions_search.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/functions_search.inc.php b/include/functions_search.inc.php index b7ea5b4de..43efbe163 100644 --- a/include/functions_search.inc.php +++ b/include/functions_search.inc.php @@ -1709,8 +1709,8 @@ function split_allwords($raw_allwords) if (!preg_match('/^\s*$/', $raw_allwords)) { - $drop_char_match = array('-','^','$',';','#','&','(',')','<','>','`','\'','"','|',',','@','_','?','%','~','.','[',']','{','}',':','\\','/','=','\'','!','*'); - $drop_char_replace = array(' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','', '', ' ',' ',' ',' ','', ' ',' ',' ',' ',' ',' ',' ',' ',' ','' , ' ',' ',' ', ' ',' '); + $drop_char_match = array('^','$',';','#','&','(',')','<','>','`','\'','"','|',',','@','?','%','~','.','[',']','{','}',':','\\','/','=','\'','!','*'); + $drop_char_replace = array(' ',' ',' ',' ',' ',' ',' ',' ',' ','', '', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','' , ' ',' ',' ', ' ',' '); // Split words $words = array_unique(