Prevent Special:Diff from processing empty string
authorSorawee Porncharoenwase <nullzero.free@gmail.com>
Sat, 22 Feb 2014 16:05:38 +0000 (16:05 +0000)
committerSorawee Porncharoenwase <nullzero.free@gmail.com>
Sat, 22 Feb 2014 16:14:54 +0000 (16:14 +0000)
commit1e4d675b16cf04d6f1f464936eb525a6796fb27a
treec0feefaedca397446be80d4fd8737b1b2d0d7af8
parent692a26234be93eacfbb38b84903b4ec370849695
Prevent Special:Diff from processing empty string

Umherirrender found that I77fdaf8e has a flaw. Currently it is possible
to go to index.php?title=Special:Diff (without any trailing string),
and the page will be redirected to index.php?diff= which is the last diff
of the main page. However, the intended way to deal with this case is to
raise ErrorPageError. This patch fixes the problem.

Change-Id: I3ff0b11671f27e77d9068930338ec8bbb674a89f
includes/specials/SpecialDiff.php