diff options
author | Joey Hess <joey@kitenet.net> | 2012-01-23 18:36:33 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-01-23 18:39:53 -0400 |
commit | bfda13f16c3a055b30d7e5448dd6640a12898adc (patch) | |
tree | 2df344174e45fe760108cdaef52c1663e36a8a58 /templates | |
parent | 0376a8da8ac42a4c7da4acfd588767ff8e062364 (diff) | |
download | ikiwiki-bfda13f16c3a055b30d7e5448dd6640a12898adc.tar ikiwiki-bfda13f16c3a055b30d7e5448dd6640a12898adc.tar.gz |
recentchangesdiff: truncate extremely large diffs
A diff was already truncated after 200 lines. But it could still be
arbitrarily enormous, if a spammer or other random noise source likes long
lines. That could use a lot of memory to html encode etc the diff and fill
it into the template. Truncating after 100kb seems sufficient; it allows
for 200 lines of up to 512 characters each.
Diffstat (limited to 'templates')
0 files changed, 0 insertions, 0 deletions