mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Locales/Search
* do not apply minimum string length limiter to logographic languages
This commit is contained in:
@@ -135,14 +135,14 @@ class SearchPage extends GenericPage
|
||||
continue;
|
||||
else if ($clean[0] == '-')
|
||||
{
|
||||
if (mb_strlen($clean) < 4)
|
||||
if (mb_strlen($clean) < 4 && !Util::isLogographic(User::$localeId))
|
||||
$this->invalid[] = mb_substr($raw, 1);
|
||||
else
|
||||
$this->excluded[] = mb_substr(str_replace('_', '\\_', $clean), 1);
|
||||
}
|
||||
else if ($clean !== '')
|
||||
{
|
||||
if (mb_strlen($clean) < 3)
|
||||
if (mb_strlen($clean) < 3 && !Util::isLogographic(User::$localeId))
|
||||
$this->invalid[] = $raw;
|
||||
else
|
||||
$this->included[] = str_replace('_', '\\_', $clean);
|
||||
|
||||
Reference in New Issue
Block a user