From a75d4f866a9732458d390bc88e901d8ee6180519 Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 7 Feb 2024 08:54:32 +0100 Subject: [PATCH] fixes #2112 more characters valid for search by word: ^~#$ --- 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 a82cafa6e..fb20137c6 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(