From a6e9222facf634a40de6840cfb37fa90920194f3 Mon Sep 17 00:00:00 2001 From: bnu Date: Wed, 7 Mar 2018 17:16:14 +0900 Subject: [PATCH] =?UTF-8?q?cond,=20loop=20=EB=93=B1=20=ED=85=9C=ED=94=8C?= =?UTF-8?q?=EB=A6=BF=20=EC=BD=94=EB=93=9C=EA=B0=80=20=EC=BB=B4=ED=8C=8C?= =?UTF-8?q?=EC=9D=BC=20=EB=90=98=EC=A7=80=20=EC=95=8A=EA=B3=A0=20=EC=B6=9C?= =?UTF-8?q?=EB=A0=A5=EB=90=98=EB=8A=94=20=EB=AC=B8=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - xpressengine/xe-core#2237 - 일부 해결됨을 확인하였으나, 다양한 환경에서 문제가 여전히 나타날 수 있음 --- classes/template/TemplateHandler.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/template/TemplateHandler.class.php b/classes/template/TemplateHandler.class.php index f66bbabd4..a22945e2b 100644 --- a/classes/template/TemplateHandler.class.php +++ b/classes/template/TemplateHandler.class.php @@ -32,6 +32,7 @@ class TemplateHandler */ public function __construct() { + ini_set('pcre.jit', false); $this->config = new stdClass; $this->handler_mtime = filemtime(__FILE__); $this->user = Rhymix\Framework\Session::getMemberInfo() ?: new Rhymix\Framework\Helpers\SessionHelper; @@ -418,8 +419,7 @@ class TemplateHandler */ private function _parseInline($buff) { - preg_match_all('/<([a-zA-Z]+\d?)(?>(?!<[a-z]+\d?[\s>]).)*?(?:[ \|]cond| loop)="/s', $buff, $match); - if(empty($match)) + if(!preg_match_all('/<([a-zA-Z]+\d?)(?:\s)/', $buff, $match)) { return $buff; }