mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 10:26:32 +00:00
removed json_encode call in Twig_Error when the filename is a string (to avoid the escaping of /)
This commit is contained in:
+1
-1
@@ -132,7 +132,7 @@ class Twig_Error extends Exception
|
||||
}
|
||||
|
||||
if (null !== $this->filename) {
|
||||
$this->message .= sprintf(' in %s', json_encode($this->filename));
|
||||
$this->message .= sprintf(' in %s', is_string($this->filename) ? '"'.$this->filename.'"' : json_encode($this->filename));
|
||||
}
|
||||
|
||||
if ($this->lineno >= 0) {
|
||||
|
||||
Reference in New Issue
Block a user