//added check in translation pack import

This commit is contained in:
vAugagneur
2012-12-28 09:19:54 +01:00
parent 434c0c43a9
commit d4ba087158
@@ -647,6 +647,8 @@ class AdminTranslationsControllerCore extends AdminController
{
foreach ($files_list as $file2check)
{
if (pathinfo($file2check['filename'], PATHINFO_BASENAME) == 'index.php')
continue;
if (preg_match('@^[0-9a-z-_/\\\\]+\.php$@i', $file2check['filename']))
{
if (!AdminTranslationsController::checkTranslationFile(file_get_contents($sandbox.$file2check['filename'])))