Add index file to FCM v1 and APNs config directories to prevent directory listing

This commit is contained in:
Kijin Sung 2024-04-21 02:47:54 +09:00
parent 2c8ae717e1
commit 64f95d2c95

View file

@ -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', '<!-- Direct Access Not Allowed -->');
$push_config[$driver_name][$conf_name] = $filename;
}
elseif (Storage::exists($filename))