mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 01:03:31 +02:00
fixes #2146 trim search by words before anything else
This commit is contained in:
@@ -1705,6 +1705,8 @@ function split_allwords($raw_allwords)
|
|||||||
{
|
{
|
||||||
$words = null;
|
$words = null;
|
||||||
|
|
||||||
|
$raw_allwords = trim($raw_allwords);
|
||||||
|
|
||||||
if (!preg_match('/^\s*$/', $raw_allwords))
|
if (!preg_match('/^\s*$/', $raw_allwords))
|
||||||
{
|
{
|
||||||
$drop_char_match = array(';','&','(',')','<','>','`','\'','"','|',',','@','?','%','.','[',']','{','}',':','\\','/','=','\'','!','*');
|
$drop_char_match = array(';','&','(',')','<','>','`','\'','"','|',',','@','?','%','.','[',']','{','}',':','\\','/','=','\'','!','*');
|
||||||
|
|||||||
Reference in New Issue
Block a user