mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
This commit is contained in:
parent
1c0cfbe0ff
commit
780a44d4fd
@ -14,7 +14,7 @@
|
||||
|
||||
if (!defined('e107_INIT')) { exit; }
|
||||
|
||||
define('CACHE_PREFIX','<?php exit;');
|
||||
define('CACHE_PREFIX','<?php exit; ?>');
|
||||
|
||||
/**
|
||||
* Class to cache data as files, improving site speed and throughput.
|
||||
@ -33,7 +33,7 @@ class ecache {
|
||||
public $SystemCacheActive; // Checkable flag - TRUE if system cache enabled
|
||||
private $lastError;
|
||||
|
||||
const CACHE_PREFIX = '<?php exit;';
|
||||
const CACHE_PREFIX = '<?php exit; ?>';
|
||||
|
||||
function __construct()
|
||||
{
|
||||
@ -153,11 +153,15 @@ class ecache {
|
||||
$this->lastError = "Couldn't read ".$cache_file;
|
||||
}
|
||||
|
||||
if (substr($ret,0,strlen(self::CACHE_PREFIX)) == self::CACHE_PREFIX)
|
||||
if (strpos($ret, self::CACHE_PREFIX) === 0)
|
||||
{
|
||||
$ret = substr($ret, strlen(self::CACHE_PREFIX));
|
||||
}
|
||||
elseif(substr($ret,0,5) == '<?php')
|
||||
elseif(strpos($ret, '<?php exit;') === 0)
|
||||
{
|
||||
$ret = substr($ret, 11);
|
||||
}
|
||||
elseif(strpos($ret,'<?php') === 0)
|
||||
{
|
||||
$ret = substr($ret, 5); // Handle the history for now
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user