summaryrefslogtreecommitdiff
path: root/inc/changelog.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-10-10 20:33:47 +0200
committerAndreas Gohr <andi@splitbrain.org>2011-10-10 20:33:47 +0200
commit7fa35bb18633117eb89c1960346a572eb7cd0369 (patch)
treeea7ebfb91b353ecfd6d6ccc84f106884c40c5773 /inc/changelog.php
parentb824abd4a1f0a1458e89c5f023902687ee1730e9 (diff)
downloadrpg-7fa35bb18633117eb89c1960346a572eb7cd0369.tar.gz
rpg-7fa35bb18633117eb89c1960346a572eb7cd0369.tar.bz2
limit edit summaries to 255 characters
Diffstat (limited to 'inc/changelog.php')
-rw-r--r--inc/changelog.php4
1 files changed, 2 insertions, 2 deletions
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)
);