mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-21 11:22:34 +09:00
템플릿구문에 개행을 포함하지 않도록 수정
- JS코드 등의 삽입으로 오작동 방지 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3467 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
2598cb96af
commit
45a24f2dbd
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue