mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
改进Upload类的getExt方法
This commit is contained in:
@@ -491,8 +491,7 @@ class Upload {
|
|||||||
* @return boolean
|
* @return boolean
|
||||||
*/
|
*/
|
||||||
protected function getExt($filename) {
|
protected function getExt($filename) {
|
||||||
$pathinfo = pathinfo($filename);
|
return pathinfo($filename,PATHINFO_EXTENSION);
|
||||||
return $pathinfo['extension'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user