From 165c8353e9496ca21dbf8ff563b96030d1492967 Mon Sep 17 00:00:00 2001 From: LouisGac Date: Wed, 18 Jul 2018 12:58:02 +0200 Subject: [PATCH] Dev: removed limitation on file multiple extensions (for minified files, map of minified files, etc). The security issue was for old PHP versions with specific mod. --- application/helpers/admin/template_helper.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/application/helpers/admin/template_helper.php b/application/helpers/admin/template_helper.php index 63a87c5b349..171f9429e84 100644 --- a/application/helpers/admin/template_helper.php +++ b/application/helpers/admin/template_helper.php @@ -132,10 +132,6 @@ function templateExtractFilter($p_event, &$p_header) $aAllowExtensions = explode(',', Yii::app()->getConfig('allowedthemeuploads')); $aAllowExtensions[] = 'twig'; $info = pathinfo($p_header['filename']); - // Deny files with multiple extensions in general - if (substr_count($info['basename'], '.') > 1) { - return 0; - } if ($p_header['folder'] || !isset($info['extension']) || in_array($info['extension'], $aAllowExtensions)) { return 1; @@ -143,4 +139,3 @@ function templateExtractFilter($p_event, &$p_header) return 0; } } -