Skip to content

Commit

Permalink
#2220 #2237 cond, loop 등 템플릿 코드가 컴파일 되지 않고 출력되는 문제
Browse files Browse the repository at this point in the history
- 일부 해결됨을 확인하였으나, 다양한 환경에서 문제가 여전히 나타날 수 있음
  • Loading branch information
bnu committed Mar 7, 2018
1 parent af74faf commit 6e044ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion classes/template/TemplateHandler.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class TemplateHandler
*/
public function __construct()
{
ini_set('pcre.jit', "0");
$this->xe_path = rtrim(getScriptPath(), '/');
$this->compiled_path = _XE_PATH_ . $this->compiled_path;
}
Expand Down Expand Up @@ -449,7 +450,7 @@ private function _replacePath($match)
*/
private function _parseInline($buff)
{
if(preg_match_all('/<([a-zA-Z]+\d?)(?>(?!<[a-z]+\d?[\s>]).)*?(?:[ \|]cond| loop)="/s', $buff, $match) === false)
if(!preg_match_all('/<([a-zA-Z]+\d?)(?:\s)/', $buff, $match))
{
return $buff;
}
Expand Down

0 comments on commit 6e044ff

Please sign in to comment.