diff options
author | Andreas Gohr <andi@splitbrain.org> | 2011-10-10 20:33:47 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2011-10-10 20:33:47 +0200 |
commit | 7fa35bb18633117eb89c1960346a572eb7cd0369 (patch) | |
tree | ea7ebfb91b353ecfd6d6ccc84f106884c40c5773 /inc | |
parent | b824abd4a1f0a1458e89c5f023902687ee1730e9 (diff) | |
download | rpg-7fa35bb18633117eb89c1960346a572eb7cd0369.tar.gz rpg-7fa35bb18633117eb89c1960346a572eb7cd0369.tar.bz2 |
limit edit summaries to 255 characters
Diffstat (limited to 'inc')
-rw-r--r-- | inc/changelog.php | 4 |
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) ); |