mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Stop treating .swf as directly downloadable file
플래시 첨부파일을 본문에 직접 삽입하는 방식에서 다운로드만 가능한 방식에서 변경 file, importer, integration_search 등 모든 모듈에 일관성있게 적용 xpressengine/xe-core#2149
This commit is contained in:
parent
7948059c91
commit
1f9f449fb0
4 changed files with 4 additions and 4 deletions
|
|
@ -1061,7 +1061,7 @@ class importerAdminController extends importer
|
|||
{
|
||||
$random = new Password();
|
||||
// Set upload path by checking if the attachement is an image or other kind of file
|
||||
if(preg_match("/\.(jpe?g|gif|png|wm[va]|mpe?g|avi|swf|flv|mp[1-4]|as[fx]|wav|midi?|moo?v|qt|r[am]{1,2}|m4v)$/i", $file_obj->source_filename))
|
||||
if(Rhymix\Framework\Filters\FilenameFilter::isDirectDownload($file_obj->source_filename))
|
||||
{
|
||||
// Immediately remove the direct file if it has any kind of extensions for hacking
|
||||
$file_obj->source_filename = preg_replace('/\.(php|phtm|phar|html?|cgi|pl|exe|jsp|asp|inc)/i', '$0-x', $file_obj->source_filename);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue