From a387aaee17413639f77794eb0c7ebc624fa75652 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= <gabor@hojtsy.hu>
Date: Sun, 3 Feb 2008 19:41:47 +0000
Subject: [PATCH] #204071 by Pancho: use UTF-8 aware string length counting in
 node_teaser() (minor)

---
 modules/node/node.module | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/node/node.module b/modules/node/node.module
index ef798cf0a33e..77c2c875e104 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -328,7 +328,7 @@ function node_teaser($body, $format = NULL, $size = NULL) {
   }
 
   // If we have a short body, the entire body is the teaser.
-  if (strlen($body) <= $size) {
+  if (drupal_strlen($body) <= $size) {
     return $body;
   }
 
-- 
GitLab