]> sipb.mit.edu Git - ikiwiki.git/commitdiff
recentchangesdiff: truncate extremely large diffs
authorJoey Hess <joey@kitenet.net>
Mon, 23 Jan 2012 22:36:33 +0000 (18:36 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 23 Jan 2012 22:39:53 +0000 (18:39 -0400)
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.


No differences found