Disallow directly downloadable swf uploads in layout module

This commit is contained in:
Kijin Sung 2017-10-12 16:00:34 +09:00
parent eb5bff0fb3
commit d47aea0aba
2 changed files with 2 additions and 2 deletions

View file

@ -1019,7 +1019,7 @@ class layoutModel extends layout
);
$image_path = $this->getUserLayoutImagePath($layout_srl);
$image_list = FileHandler::readDir($image_path,'/(.*(?:swf|jpg|jpeg|gif|bmp|png)$)/i');
$image_list = FileHandler::readDir($image_path,'/\.(?:jpg|jpeg|gif|bmp|png)$/i');
foreach($image_list as $image)
{