mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 11:56:50 +00:00
added missing else clause to avoid infinite loops
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
* 1.35.3 (2018-XX-XX)
|
* 1.35.3 (2018-XX-XX)
|
||||||
|
|
||||||
|
* added missing else clause to avoid infinite loops
|
||||||
* fixed .. (range operator) in sandbox policy
|
* fixed .. (range operator) in sandbox policy
|
||||||
|
|
||||||
* 1.35.2 (2018-03-03)
|
* 1.35.2 (2018-03-03)
|
||||||
|
|||||||
@@ -343,6 +343,9 @@ class Twig_Lexer implements Twig_LexerInterface
|
|||||||
|
|
||||||
$this->popState();
|
$this->popState();
|
||||||
++$this->cursor;
|
++$this->cursor;
|
||||||
|
} else {
|
||||||
|
// unlexable
|
||||||
|
throw new Twig_Error_Syntax(sprintf('Unexpected character "%s".', $this->code[$this->cursor]), $this->lineno, $this->source);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user