X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialDiff.php;h=77d23173ca8768be221c04ef240fe45de6ea264b;hb=bc2a7ba5df27660543a2948f3729d9cc2bd544c5;hp=bc0d7e3b855e3e914e8b4e335c4e480f1fe88648;hpb=529c02dc47fd490a59fa811d5633c99eb16f0c22;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialDiff.php b/includes/specials/SpecialDiff.php index bc0d7e3b85..77d23173ca 100644 --- a/includes/specials/SpecialDiff.php +++ b/includes/specials/SpecialDiff.php @@ -46,7 +46,7 @@ class SpecialDiff extends RedirectSpecialPage { $parts = explode( '/', $subpage ); // Try to parse the values given, generating somewhat pretty URLs if possible - if ( count( $parts ) === 1 ) { + if ( count( $parts ) === 1 && $parts[0] !== '' ) { $this->mAddedRedirectParams['diff'] = $parts[0]; } elseif ( count( $parts ) === 2 ) { $this->mAddedRedirectParams['oldid'] = $parts[0];