From: Joey Hess Date: Mon, 23 Jan 2012 22:36:33 +0000 (-0400) Subject: recentchangesdiff: truncate extremely large diffs X-Git-Tag: 3.20120202~52 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/bfda13f16c3a055b30d7e5448dd6640a12898adc?hp=bfda13f16c3a055b30d7e5448dd6640a12898adc 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. ---