mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-05 01:12:29 +02: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))
|
if (!preg_match('/^\s*$/', $raw_allwords))
|
||||||
{
|
{
|
||||||
$drop_char_match = array('^','$',';','#','&','(',')','<','>','`','\'','"','|',',','@','?','%','~','.','[',']','{','}',':','\\','/','=','\'','!','*');
|
$drop_char_match = array(';','&','(',')','<','>','`','\'','"','|',',','@','?','%','.','[',']','{','}',':','\\','/','=','\'','!','*');
|
||||||
$drop_char_replace = array(' ',' ',' ',' ',' ',' ',' ',' ',' ','', '', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','' , ' ',' ',' ', ' ',' ');
|
$drop_char_replace = array(' ',' ',' ',' ',' ',' ', '', '', ' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','' , ' ',' ',' ', ' ',' ');
|
||||||
|
|
||||||
// Split words
|
// Split words
|
||||||
$words = array_unique(
|
$words = array_unique(
|
||||||
|
|||||||
Reference in New Issue
Block a user