mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-08 19:42:15 +09:00
Use FilenameFilter in file module
This commit is contained in:
parent
1c32e993ab
commit
6d13142f30
1 changed files with 2 additions and 4 deletions
|
|
@ -732,10 +732,8 @@ class fileController extends file
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://github.com/xpressengine/xe-core/issues/1713
|
// Sanitize filename
|
||||||
$file_info['name'] = preg_replace('/\.(php|phtm|phar|html?|cgi|pl|exe|jsp|asp|inc)/i', '$0-x',$file_info['name']);
|
$file_info['name'] = Rhymix\Framework\Security\FilenameFilter::clean($file_info['name']);
|
||||||
$file_info['name'] = removeHackTag($file_info['name']);
|
|
||||||
$file_info['name'] = str_replace(array('<','>'),array('%3C','%3E'),$file_info['name']);
|
|
||||||
|
|
||||||
// Get random number generator
|
// Get random number generator
|
||||||
$random = new Password();
|
$random = new Password();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue