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