From 7fa35bb18633117eb89c1960346a572eb7cd0369 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Mon, 10 Oct 2011 20:33:47 +0200 Subject: limit edit summaries to 255 characters --- inc/changelog.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc') diff --git a/inc/changelog.php b/inc/changelog.php index 3162df01a..60f9b8657 100644 --- a/inc/changelog.php +++ b/inc/changelog.php @@ -74,7 +74,7 @@ function addLogEntry($date, $id, $type=DOKU_CHANGE_TYPE_EDIT, $summary='', $extr 'type' => str_replace($strip, '', $type), 'id' => $id, 'user' => $user, - 'sum' => str_replace($strip, '', $summary), + 'sum' => utf8_substr(str_replace($strip, '', $summary),0,255), 'extra' => str_replace($strip, '', $extra) ); @@ -131,7 +131,7 @@ function addMediaLogEntry($date, $id, $type=DOKU_CHANGE_TYPE_EDIT, $summary='', 'type' => str_replace($strip, '', $type), 'id' => $id, 'user' => $user, - 'sum' => str_replace($strip, '', $summary), + 'sum' => utf8_substr(str_replace($strip, '', $summary),0,255), 'extra' => str_replace($strip, '', $extra) ); -- cgit v1.2.3