// small fix
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15887 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -1502,8 +1502,8 @@ function smartyAutoload($class)
|
||||
'smarty_resource_recompiled' => true,
|
||||
);
|
||||
|
||||
if (!strncmp($_class, 'smarty_internal_', 16) || isset($_classes[$_class])) {
|
||||
include SMARTY_SYSPLUGINS_DIR . $_class . '.php';
|
||||
if (preg_match('/^[0-9a-z_-]+$/i', $_class) && !strncmp($_class, 'smarty_internal_', 16) || isset($_classes[$_class])) {
|
||||
include SMARTY_SYSPLUGINS_DIR . $_class . '.php';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user