From 4ea47499ed843c4560d8e1d611fadbe7beb260f4 Mon Sep 17 00:00:00 2001 From: Alain Tiemblo Date: Mon, 16 Mar 2015 22:54:30 +0100 Subject: [PATCH] [2.0] unclosed "verbatim" block should be litteraly written Fixes #1654 cc @SpacePossum --- lib/Twig/Lexer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Twig/Lexer.php b/lib/Twig/Lexer.php index 9d9c43faf..8c210601a 100644 --- a/lib/Twig/Lexer.php +++ b/lib/Twig/Lexer.php @@ -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);