Skip to content

Commit 638d338

Browse files
authored
Use utf8 strlen
1 parent 8575f6f commit 638d338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

event/listener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public function validate_pwa_options($event)
245245
$short_name = $this->decode_entities($event['cfg_array']['pwa_short_name']);
246246

247247
// Do not allow strings longer than 12 characters
248-
if (mb_strlen($short_name, 'UTF-8') > 12)
248+
if (utf8_strlen($short_name) > 12)
249249
{
250250
$this->add_error($event, 'PWA_SHORT_NAME_INVALID');
251251
return;

0 commit comments

Comments
 (0)