mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
fixes #2112 more characters valid for search by word: ^~#$
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user