Skip to content
Permalink
Browse files

バイパスモードキャッシュ時の404ページにphpタグ混入

  • Loading branch information...
yama committed Nov 1, 2015
1 parent 9fa9480 commit 3797a024c0a8ecf77c2caa3f820ec1e598d09658
Showing with 3 additions and 1 deletion.
  1. +3 −1 manager/includes/document.parser.class.inc.php
@@ -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)

0 comments on commit 3797a02

Please sign in to comment.
You can’t perform that action at this time.