mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-18 13:26:37 +00:00
bug #1655 [2.0] unclosed "verbatim" block should be litteraly written (ninsuo)
This PR was merged into the 2.0-dev branch.
Discussion
----------
[2.0] unclosed "verbatim" block should be litteraly written
Fixes #1654
cc @SpacePossum
Commits
-------
4ea4749 [2.0] unclosed "verbatim" block should be litteraly written
This commit is contained in:
+1
-1
@@ -288,7 +288,7 @@ class Twig_Lexer
|
||||
protected function lexRawData()
|
||||
{
|
||||
if (!preg_match($this->regexes['lex_raw_data'], $this->code, $match, PREG_OFFSET_CAPTURE, $this->cursor)) {
|
||||
throw new Twig_Error_Syntax(sprintf('Unexpected end of file: Unclosed "%s" block', $tag), $this->lineno, $this->filename);
|
||||
throw new Twig_Error_Syntax('Unexpected end of file: Unclosed "verbatim" block', $this->lineno, $this->filename);
|
||||
}
|
||||
|
||||
$text = substr($this->code, $this->cursor, $match[0][1] - $this->cursor);
|
||||
|
||||
Reference in New Issue
Block a user