//added check in translation pack import
This commit is contained in:
1 parent
434c0c43a9
commit
d4ba087158
1 file changed
+2
@@ -647,6 +647,8 @@ class AdminTranslationsControllerCore extends AdminController
|
|||||||
{
|
{
|
||||||
foreach ($files_list as $file2check)
|
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 (preg_match('@^[0-9a-z-_/\\\\]+\.php$@i', $file2check['filename']))
|
||||||
{
|
{
|
||||||
if (!AdminTranslationsController::checkTranslationFile(file_get_contents($sandbox.$file2check['filename'])))
|
if (!AdminTranslationsController::checkTranslationFile(file_get_contents($sandbox.$file2check['filename'])))
|
||||||
|
|||||||
Reference in new issue
Block a user