kalimatas / php-liquid

A PHP port of Ruby's Liquid Templates
http://www.delacap.com/artikel/Liquid-Templates/
MIT License
168 stars 58 forks source link

Invalid template parse succeeds #199

Open GrahamCampbell opened 1 year ago

GrahamCampbell commented 1 year ago
Hello, {{foo}

is an invalid template, and should result in a parse error (according to the official implementation), however it does not.

Example that does result in a parse error:

{{foo}
GrahamCampbell commented 1 year ago

I've prepared a failing test case for this: https://github.com/kalimatas/php-liquid/pull/200.