diff --git a/app/Controllers/Config.php b/app/Controllers/Config.php index 1e4c1ead3..5c0b33171 100644 --- a/app/Controllers/Config.php +++ b/app/Controllers/Config.php @@ -349,10 +349,11 @@ class Config extends Secure_Controller $filename = $file->getClientName(); $info = pathinfo($filename); + helper('security'); $file_info = [ 'orig_name' => $filename, - 'raw_name' => $info['filename'], + 'raw_name' => sanitize_filename($info['filename']), 'file_ext' => $file->guessExtension() ]; diff --git a/app/Views/configs/info_config.php b/app/Views/configs/info_config.php index 54c121d17..1a7051844 100644 --- a/app/Views/configs/info_config.php +++ b/app/Views/configs/info_config.php @@ -36,7 +36,7 @@
- <?= esc(lang('Config.company_logo')) ?> + <?= esc(lang('Config.company_logo')) ?>