Commit a387aaee authored by Gábor Hojtsy's avatar Gábor Hojtsy

#204071 by Pancho: use UTF-8 aware string length counting in node_teaser() (minor)

parent 41e86f2e
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment