From 64f95d2c95cfe3ad8fc6296e01bac98b9fa2dd03 Mon Sep 17 00:00:00 2001 From: Kijin Sung Date: Sun, 21 Apr 2024 02:47:54 +0900 Subject: [PATCH] Add index file to FCM v1 and APNs config directories to prevent directory listing --- modules/admin/controllers/systemconfig/Notification.php | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/admin/controllers/systemconfig/Notification.php b/modules/admin/controllers/systemconfig/Notification.php index 2effd2516..84d192a6d 100644 --- a/modules/admin/controllers/systemconfig/Notification.php +++ b/modules/admin/controllers/systemconfig/Notification.php @@ -202,6 +202,7 @@ class Notification extends Base if ($conf_value !== null) { Storage::write($filename, $conf_value); + Storage::write('./files/config/' . $driver_name . '/index.html', ''); $push_config[$driver_name][$conf_name] = $filename; } elseif (Storage::exists($filename))