mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01: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;
|
||||
|
||||
$raw_allwords = trim($raw_allwords);
|
||||
|
||||
if (!preg_match('/^\s*$/', $raw_allwords))
|
||||
{
|
||||
$drop_char_match = array(';','&','(',')','<','>','`','\'','"','|',',','@','?','%','.','[',']','{','}',':','\\','/','=','\'','!','*');
|
||||
|
||||
Reference in New Issue
Block a user