* Strict Standards: Undefined variable: dbr in includes/SpecialAllpages.php on line 266
* Fatal error: Call to a member function select() on a non-object in includes/SpecialAllpages.php on line 266
* Strict Standards: Undefined variable: n in includes/SpecialAllpages.php on line 308
Above could be repo-ed with error_reporting(E_ALL | E_STRICT) set, by supplying bad input, such as this command line:
curl --silent --include --globoff -F 'from'='\<' 'http://localhost/wiki/index.php?title=Special%3AAllpages'
(or easier is to just type "<" into the "Display pages starting at:" field on [[Special:Allpages]], and click "Go")
$sk = $wgUser->getSkin();
$fromList = $this->getNamespaceKeyAndText($namespace, $from);
-
+ $n = 0;
+
if ( !$fromList ) {
$out = wfMsgWikiHtml( 'allpagesbadtitle' );
} else {
)
);
- $n = 0;
$out = '<table style="background: inherit;" border="0" width="100%">';
while( ($n < $this->maxPerPage) && ($s = $dbr->fetchObject( $res )) ) {
} else {
# Get the last title from previous chunk
+ $dbr =& wfGetDB( DB_SLAVE );
$res_prev = $dbr->select(
'page',
'page_title',