Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

Fix encoding issues causing message index endpoint to fail

Dave Earleyee1d73b93ec0
diff --git a/backend/app/Helper/StringHelper.php b/backend/app/Helper/StringHelper.php
index 635baaf21..ffa612c14 100644
--- a/backend/app/Helper/StringHelper.php
+++ b/backend/app/Helper/StringHelper.php
@@ -12,7 +12,7 @@ class StringHelper
$text = trim(preg_replace('/\s+/', ' ', $text));
if (strlen($text) > $length) {
- $text = substr($text, 0, $length - 3) . '...';
+ $text = mb_substr($text, 0, $length - 3) . '...';
}
return $text;