Skip to content

Commit b796e9e

Browse files
committed
Fix theme uploader bug
1 parent 29667f7 commit b796e9e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/Http/Controllers/UserController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -766,6 +766,7 @@ public function editTheme(request $request)
766766
$folder = base_path('themes');
767767
$regex = '/[0-9.-]/';
768768
$files = scandir($folder);
769+
$files = array_diff($files, array('.', '..'));
769770

770771
foreach ($files as $file) {
771772
$basename = basename($file);

0 commit comments

Comments
 (0)