Skip to content

Commit

Permalink
fixed: use correct function for wire post length
Browse files Browse the repository at this point in the history
  • Loading branch information
jeabakker committed Nov 26, 2024
1 parent 06971af commit b48f212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function thewire_tools_save_post(string $text, int $userid, int $access_id = nul
$limit = thewire_tools_get_wire_length();
if ($limit > 0) {
$text_for_size = elgg_strip_tags($text);
if (strlen($text_for_size) > $limit) {
if (elgg_strlen($text_for_size) > $limit) {
return false;
}
}
Expand Down

0 comments on commit b48f212

Please sign in to comment.