$params['file'
] =
substr($params['file'
], 7
);
} $protocol =
strpos($params['file'
], '://'
);
if ($protocol !== false
) { $protocol =
strtolower(substr($params['file'
], 0,
$protocol));
} if (isset($template->smarty->security_policy
)) { if ($protocol) { // remote resource (or php stream, …)
if(!
$template->smarty->security_policy->
isTrustedUri($params['file'
])) { return;
} } else { // local file
if(!
$template->smarty->security_policy->
isTrustedResourceDir($params['file'
])) { return;
} } } if (!
isset($params['width'
]) || !
isset($params['height'
])) {