Commit efacbb5e by Seldaek

* Small error reporting fix in the compiler

git-svn-id: svn://dwoo.org/dwoo/trunk@9 0598d79b-80c4-4d41-97ba-ac86fbbd088b
parent bfa5635a
......@@ -2272,7 +2272,7 @@ class DwooCompiler implements DwooICompiler
*/
public function triggerError($message, $level=E_USER_NOTICE)
{
trigger_error('DwooCompiler error : '.$message."<br />\r\nNear : ".substr($this->template, $this->pointer-25, 125), $level);
trigger_error('DwooCompiler error : '.$message."<br />\r\nNear : ".htmlentities(substr($this->template, max(0, $this->pointer-30), 130)), $level);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment