Skip to content

Commit

Permalink
Use utf8 strlen
Browse files Browse the repository at this point in the history
  • Loading branch information
iMattPro authored Dec 5, 2024
1 parent 8575f6f commit 638d338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion event/listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public function validate_pwa_options($event)
$short_name = $this->decode_entities($event['cfg_array']['pwa_short_name']);

// Do not allow strings longer than 12 characters
if (mb_strlen($short_name, 'UTF-8') > 12)
if (utf8_strlen($short_name) > 12)
{
$this->add_error($event, 'PWA_SHORT_NAME_INVALID');
return;
Expand Down

0 comments on commit 638d338

Please sign in to comment.