Skip to content
Snippets Groups Projects
Commit bc769d32 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

correct UTF-8 trimming of abstracts in metarenderer FS#1233

darcs-hash:20080118224834-7ad00-bda8d919c3fdf4bafe8509dca35aa437b38e1ac6.gz
parent 44a6b4c7
No related branches found
No related tags found
No related merge requests found
......@@ -49,7 +49,7 @@ class Doku_Renderer_metadata extends Doku_Renderer {
// cut off too long abstracts
$this->doc = trim($this->doc);
if (strlen($this->doc) > 500)
$this->doc = substr($this->doc, 0, 500).'…';
$this->doc = utf8_substr($this->doc, 0, 500).'…';
$this->meta['description']['abstract'] = $this->doc;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment