Skip to content

Commit

Permalink
バイパスモードキャッシュ時の404ページにphpタグ混入
Browse files Browse the repository at this point in the history
  • Loading branch information
yama committed Nov 1, 2015
1 parent 9fa9480 commit 3797a02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion manager/includes/document.parser.class.inc.php
Expand Up @@ -1131,9 +1131,11 @@ function getCache($id)

$this->documentGenerated = 0;

$flContent = substr($flContent, 37); // remove php header
if(substr($flContent,0,5)==='<?php') $flContent = substr($flContent, 37); // remove php header
$a = explode('<!--__MODxCacheSpliter__-->', $flContent, 2);
if(count($a) == 1) return $a[0];
elseif(substr($flContent,0,5)!=='<?php')
return $a[1];

$docObj = unserialize(trim($a['0'])); // rebuild document object
// add so - check page security(admin(mgrRole=1) is pass)
Expand Down

0 comments on commit 3797a02

Please sign in to comment.