From: Brion Vibber Date: Thu, 24 Apr 2008 22:30:21 +0000 (+0000) Subject: make my paranoia feel better by escaping values :) X-Git-Tag: 1.31.0-rc.0~48078 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/ajouter.php?a=commitdiff_plain;h=c89816e6e1534a1d3ef542285733002dc0cda112;p=lhc%2Fweb%2Fwiklou.git make my paranoia feel better by escaping values :) --- diff --git a/includes/SpecialShortpages.php b/includes/SpecialShortpages.php index bb2ef66937..926f2c36e1 100644 --- a/includes/SpecialShortpages.php +++ b/includes/SpecialShortpages.php @@ -36,7 +36,7 @@ class ShortPagesPage extends QueryPage { $forceindex = $dbr->useIndexClause("page_len"); if ($wgContentNamespaces) - $nsclause = "page_namespace IN (" . implode(',', $wgContentNamespaces) . ")"; + $nsclause = "page_namespace IN (" . $dbr->makeList($wgContentNamespaces) . ")"; else $nsclause = "page_namespace = " . NS_MAIN;