fix determining invalid image type
This commit is contained in:
parent
fb64056cbd
commit
c4f8004b41
|
|
@ -265,7 +265,7 @@ class SkinlibController extends Controller
|
||||||
'public' => 'required'
|
'public' => 'required'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
if ($_FILES['file']['type'] != "image/png" || $_FILES['file']['type'] != "image/x-png") {
|
if ($_FILES['file']['type'] != "image/png" && $_FILES['file']['type'] != "image/x-png") {
|
||||||
return json(trans('skinlib.upload.type-error'), 1);
|
return json(trans('skinlib.upload.type-error'), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user