Skip to content

Commit 746bef0

Browse files
committed
Fix PDOException with arguments column when too many changes on an update message
1 parent 3bf942b commit 746bef0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: modules/oa_diff/oa_diff.module

+4
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ function oa_diff_tokens($type, $tokens, array $data = array(), array $options =
6868
unset($build['diff_preview']);
6969

7070
$output = drupal_render_children($build);
71+
// prevent overflow of messages
72+
if (strlen($output) > 2048) {
73+
$output = t('Too many differences to list. See Revisions for details.');
74+
}
7175
$replacements[$original] = $output;
7276
}
7377
else {

0 commit comments

Comments
 (0)