OEmbed: Reverted Smarty Security Disabling
This commit is contained in:
parent
ff101db677
commit
9e4120d231
|
@ -18,12 +18,14 @@ class OEmbedTemplater {
|
|||
$inclusion = $serendipity['smarty']->security_settings[@INCLUDE_ANY];
|
||||
$serendipity['smarty']->security_settings[@INCLUDE_ANY] = true;
|
||||
|
||||
/*
|
||||
if (version_compare($serendipity['version'], '1.7-alpha1')>=0) {
|
||||
$serendipity['smarty']->disableSecurity();
|
||||
}
|
||||
else {
|
||||
$serendipity['smarty']->security = false;
|
||||
}
|
||||
*/
|
||||
|
||||
// be smarty 3 compat including the serendipity_smarty class wrappers ->fetch and ->display methods and remove changed parameter number 4
|
||||
$content = @$serendipity['smarty']->fetch('file:'. $tfile);//, false
|
||||
|
|
Loading…
Reference in a new issue