diff --git a/omnisend/includes/Internal/class-utils.php b/omnisend/includes/Internal/class-utils.php index 022eab3..dcaaf7d 100644 --- a/omnisend/includes/Internal/class-utils.php +++ b/omnisend/includes/Internal/class-utils.php @@ -31,7 +31,7 @@ public static function is_valid_custom_property_name( $name ): bool { */ public static function clean_up_custom_property_name( $name ): string { $name = preg_replace( '/[^a-zA-Z0-9_]/', '', $name ); - return mb_strimwidth( $name, 0, 128 ); + return substr( $name, 0, 128 ); } /** @@ -54,6 +54,7 @@ public static function is_valid_tag( $tag ): bool { */ public static function clean_up_tag( $tag ): string { $tag = preg_replace( '/[^A-Za-z0-9_\- ]/', '', $tag ); - return mb_strimwidth( $tag, 0, 128 ); + + return substr( $tag, 0, 128 ); } }