mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-17 17:32:15 +09:00
#16 case '<!DOCTYPE', Templete engine parse error.
add exception case '!DOCTYPE' git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8419 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
9a3184814a
commit
3c52744d5b
1 changed files with 2 additions and 2 deletions
|
|
@ -358,11 +358,11 @@
|
|||
$pre_pos = strrpos($pre, '<');
|
||||
|
||||
$isClosedTagUse = true;
|
||||
preg_match('/<(\/|[a-z])/i',$next,$m);
|
||||
preg_match('/<(\/|[!DOCTYPE]|[a-z])/i',$next,$m);
|
||||
// if not use closed tag, find simple closed tag
|
||||
if(!$m[0]) {
|
||||
$isClosedTagUse = false;
|
||||
preg_match('/\/>/',$next,$m);
|
||||
preg_match('/[^->]\/?>/',$next,$m);
|
||||
}
|
||||
if(!$m[0]) return $buff;
|
||||
if($isClosedTagUse) $next_pos = strpos($next, $m[0]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue