Travis Derouin wrote:
We have a strange diff on our site that appears to be
78MB in size
that's causing errors:
http://www.wikihow.com/index.php?title=Sweep-a-Girl-off-Her-Feet&diff=1…
Between this version:
http://www.wikihow.com/index.php?title=Sweep-a-Girl-off-Her-Feet&oldid=…
and this version:
http://www.wikihow.com/index.php?title=Sweep-a-Girl-off-Her-Feet&oldid=…
(obviously this is vandalism)
It seems like the large diff is a result of a very long list of
newlines being entered into the revision. I tried putting some error
checking into DifferenceEngine to avoid displaying or storing large
diffs in the cache, but it seems like this affects several areas of
the code. This is the diff that was being stored:
http://207.97.207.17/x/baddiff.html
Any ideas? Has anyone run into this before?
You could just impose a line count limit at save time. There's no
legitimate reason to have a million lines in an article.
-- Tim Starling