템플릿구문에 개행을 포함하지 않도록 수정

- JS코드 등의 삽입으로 오작동 방지

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3467 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
bnu 2008-01-04 14:31:30 +00:00
parent 2598cb96af
commit 45a24f2dbd

View file

@ -107,10 +107,10 @@
$buff = preg_replace_callback('/(img|input)([^>]*)src=[\'"]{1}(?!http)(.*?)[\'"]{1}/is', array($this, '_compileImgPath'), $buff);
// 변수를 변경
$buff = preg_replace_callback('/\{[^@^ ]([^\}]+)\}/i', array($this, '_compileVarToContext'), $buff);
$buff = preg_replace_callback('/\{[^@^ ]([^\{\}\n]+)\}/i', array($this, '_compileVarToContext'), $buff);
// 결과를 출력하지 않는 구문 변경
$buff = preg_replace_callback('/\{\@([^\}]+)\}/i', array($this, '_compileVarToSilenceExecute'), $buff);
$buff = preg_replace_callback('/\{\@([^\{\}\n]+)\}/i', array($this, '_compileVarToSilenceExecute'), $buff);
// <!--@, --> 의 변경
$buff = preg_replace_callback('!<\!--@(.*?)-->!is', array($this, '_compileFuncToCode'), $buff);