Skip to content

Commit b65e539

Browse files
committed
Add an empty index.htm to prevent unwanted peeping in new dir
1 parent d876789 commit b65e539

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

migrations/setup_site_icons.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,11 @@ public function configure_site_icons()
6464

6565
try
6666
{
67-
// Create directory only if needed
67+
// Create directory only if needed (give an empty index.htm too)
6868
if (!$filesystem->exists($new_icon_path))
6969
{
7070
$filesystem->mkdir($new_icon_path);
71+
$filesystem->touch($new_icon_path . '/index.htm');
7172
}
7273

7374
// Process icons

0 commit comments

Comments
 (0)