mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Disallow directly downloadable swf uploads in layout module
This commit is contained in:
parent
eb5bff0fb3
commit
d47aea0aba
2 changed files with 2 additions and 2 deletions
|
|
@ -929,7 +929,7 @@ class layoutAdminController extends layout
|
|||
return;
|
||||
}
|
||||
|
||||
if(!preg_match('/\.(jpg|jpeg|gif|png|swf)$/i', $img['name']))
|
||||
if(!preg_match('/\.(jpg|jpeg|gif|png)$/i', $img['name']))
|
||||
{
|
||||
Context::set('msg', lang('msg_layout_image_target'));
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue