literal bug
| From: | Paul Lockaby | Date: | Fri, 23 May 2003 18:35:54 +0000 |
| Subject: | literal bug | ||
| Groups: | php.smarty.dev | ||
| Request: | Send a blank email to php-smarty-dev+get-1506@lists.php.net to get a copy of this message | ||
Hi,
I was going through the Smarty code and I found this little bug. If you have spaces between the left and right delimiters, the parsing engine will return an error and stop execution. Here is an example.
This fails:
{ literal }blah blibbidy blah{ /literal }
And returns this error:
Fatal error: Smarty error: [in smarty.tpl line 12]: [plugin] unknown tag - '/literal' (Smarty.class.php, line 2522) in Smarty.class.php on line 2633
Note that I am not using the most recent CVS version of Smarty. I'm using the most recent version before all the abstractioning took place.
-Paul Lockaby