mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
Ensure more consistent operation of security checks
- 수상한 파일이 업로드되었을 때 isSuccessInit = false로 지정 - isSuccessInit = false인 경우 무조건 에러메시지 출력 (xpressengine/xe-core#2304) - 보안정책 관련 에러메시지는 msg_security_violation으로 통일
This commit is contained in:
parent
4dca555392
commit
c3f1e24b02
2 changed files with 13 additions and 19 deletions
|
|
@ -1263,6 +1263,7 @@ class Context
|
|||
{
|
||||
if(!UploadFileFilter::check($tmp_name, $val['name']))
|
||||
{
|
||||
self::$_instance->isSuccessInit = false;
|
||||
unset($_FILES[$key]);
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue