|
From: <var...@us...> - 2015-04-23 18:49:35
|
Revision: 9694
http://sourceforge.net/p/phpwiki/code/9694
Author: vargenau
Date: 2015-04-23 18:49:33 +0000 (Thu, 23 Apr 2015)
Log Message:
-----------
Use chr(0) instead of null byte
Modified Paths:
--------------
trunk/lib/WikiDB/backend/dbaBase.php
Modified: trunk/lib/WikiDB/backend/dbaBase.php
===================================================================
--- trunk/lib/WikiDB/backend/dbaBase.php 2015-04-23 18:39:01 UTC (rev 9693)
+++ trunk/lib/WikiDB/backend/dbaBase.php 2015-04-23 18:49:33 UTC (rev 9694)
@@ -118,7 +118,7 @@
// we also had for some internal version vdata is serialized strings,
// need to unserialize it twice. We rather purge it.
if (!is_string($vdata)
- or $vdata == 'UNKNOWN+ or $vdata == 'UNKNOWN'.chr(0)
or !is_array(unserialize($vdata))
) {
$errs[] = "empty revision $version for $page";
@@ -192,7 +192,7 @@
function get_versiondata($pagename, $version, $want_content = false)
{
$data = $this->_versiondb->get((int)$version . ":$pagename");
- if (empty($data) or $data == 'UNKNOWN+ if (empty($data) or $data == 'UNKNOWN'.chr(0)) return false;
else {
$vdata = unserialize($data);
if (DEBUG and empty($vdata)) { // requires ->check
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|