// 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:
rGaillard
2012-06-06 17:10:24 +00:00
parent 8098bb169c
commit ec59cb25c6
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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';
}
}