From: Ævar Arnfjörð Bjarmason Date: Fri, 7 Oct 2005 12:06:39 +0000 (+0000) Subject: * When a user would: X-Git-Tag: 1.6.0~1519 X-Git-Url: http://git.cyclocoop.org/%22.%24match%5B1%5D.%22?a=commitdiff_plain;h=d79b5accf229a0d9bafe228e21dbdf9541b2f99f;p=lhc%2Fweb%2Fwiklou.git * When a user would: 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 --- diff --git a/includes/SpecialContributions.php b/includes/SpecialContributions.php index 3f2d8e0aa1..f3ea43e3a9 100644 --- a/includes/SpecialContributions.php +++ b/includes/SpecialContributions.php @@ -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);