* When a user would:
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Fri, 7 Oct 2005 12:06:39 +0000 (12:06 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Fri, 7 Oct 2005 12:06:39 +0000 (12:06 +0000)
  1. Enter Special:Contributions/User
  2. Press submit
 &namespace= would be appended to the GET request, "" would then be typecast
 to int which would yield 0 meaning that not edits from all namespaces would
 be returned but just those from the main namespace

includes/SpecialContributions.php

index 3f2d8e0..f3ea43e 100644 (file)
@@ -188,7 +188,7 @@ function wfSpecialContributions( $par = null ) {
        $finder->set_offset($offset);
 
        $nsurl = $xnsurl = "";
-       if (($ns = $wgRequest->getVal('namespace', null)) !== null) {
+       if (($ns = $wgRequest->getVal('namespace', null)) !== null && $ns !== '') {
                $nsurl = "&namespace=$ns";
                $xnsurl = htmlspecialchars($nsurl);
                $finder->set_namespace($ns);