From: Rob Church Date: Thu, 28 Jun 2007 22:00:13 +0000 (+0000) Subject: Fix broken handling of log views for page titles consisting of one or more zeros... X-Git-Tag: 1.31.0-rc.0~52344 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=98fdf8110d313c320883cdeafd13849f8b123151;p=lhc%2Fweb%2Fwiklou.git Fix broken handling of log views for page titles consisting of one or more zeros, e.g. "0", "00" etc. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2f28335376..80f357ffdd 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -232,6 +232,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * Delay AJAX watch initialization until click so IE 6 with ugly security settings doesn't prompt you until you use the link. * (bug 10401) Provide non-redirecting link to original title in Special:Movepage +* Fix broken handling of log views for page titles consisting of one + or more zeros, e.g. "0", "00" etc. == API changes since 1.10 == diff --git a/includes/SpecialLog.php b/includes/SpecialLog.php index e263813fb8..81a94e3888 100644 --- a/includes/SpecialLog.php +++ b/includes/SpecialLog.php @@ -124,9 +124,10 @@ class LogReader { function limitTitle( $page , $pattern ) { global $wgMiserMode; $title = Title::newFromText( $page ); - if( empty( $page ) || is_null( $title ) ) { + + if( strlen( $page ) == 0 || !$title instanceof Title ) return false; - } + $this->title =& $title; $this->pattern = $pattern; $ns = $title->getNamespace();