summaryrefslogtreecommitdiff
path: root/modules/watchdog/watchdog.module
diff options
context:
space:
mode:
authorSteven Wittens <steven@10.no-reply.drupal.org>2004-04-15 14:07:08 +0000
committerSteven Wittens <steven@10.no-reply.drupal.org>2004-04-15 14:07:08 +0000
commita083daf8418d1dc6e0cbc5b41924c9d364815f9e (patch)
treed2bd8288eb65db1e741043e451f2cc1c20d2d093 /modules/watchdog/watchdog.module
parent803dacf65225d78c2ffe60a853b1c822f4e628e1 (diff)
downloadbrdo-a083daf8418d1dc6e0cbc5b41924c9d364815f9e.tar.gz
brdo-a083daf8418d1dc6e0cbc5b41924c9d364815f9e.tar.bz2
Truncate UTF-8 patch. Introduced a new function truncate_utf8() for chopping off strings at unsure locations, without risking incomplete UTF-8 data.
Diffstat (limited to 'modules/watchdog/watchdog.module')
-rw-r--r--modules/watchdog/watchdog.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module
index a7ed775a8..e0b1c38d2 100644
--- a/modules/watchdog/watchdog.module
+++ b/modules/watchdog/watchdog.module
@@ -94,7 +94,7 @@ function watchdog_overview($type) {
while ($watchdog = db_fetch_object($result)) {
$rows[] = array(
array("data" => format_date($watchdog->timestamp, "small"), "class" => "watchdog-$watchdog->type"),
- array("data" => substr(strip_tags($watchdog->message), 0, 64), "class" => "watchdog-$watchdog->type"),
+ array("data" => truncate_utf8(strip_tags($watchdog->message), 64), "class" => "watchdog-$watchdog->type"),
array("data" => format_name($watchdog), "class" => "watchdog-$watchdog->type"),
array("data" => $watchdog->link, "class" => "watchdog-$watchdog->type"),
array("data" => l(t("view details"), "admin/watchdog/view/$watchdog->wid"), "class" => "watchdog-$watchdog->type")