Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fixed infinite loop problem in parse for unescaped ejs #159
This code will run in an infinite loop eventually taking all memory and killing the node process (Allocation failed - process out of memory):
The problem is at file lib/ejs.js line 144,173 (prase function)
This fix solves it because now ejs will throw an error when template being compiled is unescaped rather than going into infinite loop.