Applied security fix from latest Smarty release (2.6.28) - ref
https://code.google.com/p/smarty-php/source/detail?r=4779
Authored by: hansfn 2013-12-11
Parent: [r4311]
Child: [r4313]