mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 17:44:38 +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;
|
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'));
|
Context::set('msg', lang('msg_layout_image_target'));
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -1019,7 +1019,7 @@ class layoutModel extends layout
|
||||||
);
|
);
|
||||||
|
|
||||||
$image_path = $this->getUserLayoutImagePath($layout_srl);
|
$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)
|
foreach($image_list as $image)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue