Skip to content

Commit

Permalink
//added check in translation pack import
Browse files Browse the repository at this point in the history
  • Loading branch information
vAugagneur committed Dec 28, 2012
1 parent 434c0c4 commit d4ba087
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/admin/AdminTranslationsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,8 @@ public function submitImportLang()
{
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'])))
Expand Down

0 comments on commit d4ba087

Please sign in to comment.