substr_compare() 사용에 대한 보완

This commit is contained in:
bnu 2013-11-27 14:18:09 +09:00
parent 833d218a66
commit 4d9e68b9e4
5 changed files with 20 additions and 4 deletions

View file

@ -697,6 +697,7 @@ class layoutAdminController extends layout
if(!Context::isUploaded()) exit();
$file = Context::get('file');
if(!is_uploaded_file($file['tmp_name']) || !checkUploadedFile($file['tmp_name'])) exit();
if(substr_compare($file['name'], '.tar', -4) !== 0) exit();
$layout_srl = Context::get('layout_srl');