Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

$smarty->fetch in Smarty3 has template size limit

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty 3
View previous topic :: View next topic  
Author Message
schtorch
Smarty n00b


Joined: 10 Jun 2010
Posts: 2

PostPosted: Thu Jun 10, 2010 10:27 am    Post subject: $smarty->fetch in Smarty3 has template size limit Reply with quote

Hi,

we are migrating currently hundreds of existing templates from Smarty2 to Smarty3, mainly to be able to use the automatic output filter function to eliminate XSS. So far we are very pleased with the results of Smarty3 and thank you for the great work!

We have encountered an issue. Templates that exceed an amount of Kilobytes are truncated when inserting them via $smarty->fetch('test.tpl'); . This was working in Smarty2.

Could you please look into this?

Regards,
Jens
Back to top
View user's profile Send private message
U.Tews
Administrator


Joined: 22 Nov 2006
Posts: 5068
Location: Hamburg / Germany

PostPosted: Fri Jun 11, 2010 1:09 pm    Post subject: Reply with quote

The Lexer did fail on larger {literal} ... {/literal} sections.

The fix is in the SVN now.

Jens, thank you for the provided test case.
Back to top
View user's profile Send private message
schtorch
Smarty n00b


Joined: 10 Jun 2010
Posts: 2

PostPosted: Fri Jun 11, 2010 1:58 pm    Post subject: Reply with quote

Thx a lot for the fast fix Wink
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty 3 All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP