mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
Strings/Encoding
* replaced some more uses of string functions with multibyte equivalents where it might matter note: i didn't touch the spell-tooltip parser as it seems to work as intended regardless
This commit is contained in:
@@ -922,9 +922,9 @@ abstract class Filter
|
||||
$parts = array_filter(explode(' ', $string));
|
||||
foreach ($parts as $p)
|
||||
{
|
||||
if ($p[0] == '-' && strlen($p) > 3)
|
||||
$sub[] = [$f, sprintf($exPH, substr($p, 1)), '!'];
|
||||
else if ($p[0] != '-' && strlen($p) > 2)
|
||||
if ($p[0] == '-' && mb_strlen($p) > 3)
|
||||
$sub[] = [$f, sprintf($exPH, mb_substr($p, 1)), '!'];
|
||||
else if ($p[0] != '-' && mb_strlen($p) > 2)
|
||||
$sub[] = [$f, sprintf($exPH, $p)];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user