mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
修正Validate类的image方法
This commit is contained in:
@@ -710,7 +710,7 @@ class Validate
|
|||||||
if ('jpeg' == $imageType) {
|
if ('jpeg' == $imageType) {
|
||||||
$imageType = 'jpg';
|
$imageType = 'jpg';
|
||||||
}
|
}
|
||||||
if (image_type_to_extension($type) != $imageType) {
|
if (image_type_to_extension($type, false) != $imageType) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user