From: <ru...@us...> - 2009-06-04 08:22:00
|
Revision: 6854 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6854&view=rev Author: rurban Date: 2009-06-04 08:21:59 +0000 (Thu, 04 Jun 2009) Log Message: ----------- Detect broken - double serialized vdata - pages. Fix paging count. Modified Paths: -------------- trunk/lib/WikiDB/backend/dbaBase.php Modified: trunk/lib/WikiDB/backend/dbaBase.php =================================================================== --- trunk/lib/WikiDB/backend/dbaBase.php 2009-06-04 08:12:59 UTC (rev 6853) +++ trunk/lib/WikiDB/backend/dbaBase.php 2009-06-04 08:21:59 UTC (rev 6854) @@ -83,7 +83,7 @@ } function check($args=false) { - // cleanup v?Pagename UNKNOWN + // cleanup v?Pagename UNKNOWN0x0 $errs = array(); $pagedb = &$this->_pagedb; for ($page = $pagedb->firstkey(); $page !== false; $page = $pagedb->nextkey()) { @@ -98,9 +98,11 @@ $vdata = $this->_versiondb->get($version.":".$page); if ($vdata === false) continue; // linkrelations + // we also had for some internal version vdata is serialized strings (of array), + // need to unserialize it twice. We rather purge it. if (!is_string($vdata) or $vdata == 'UNKNOWN |