commit
b266284445
|
@ -103,7 +103,8 @@ function checkExt($file,$changExt=false){
|
||||||
$not_allow = $GLOBALS['auth']['ext_not_allow'];
|
$not_allow = $GLOBALS['auth']['ext_not_allow'];
|
||||||
$ext_arr = explode('|',$not_allow);
|
$ext_arr = explode('|',$not_allow);
|
||||||
foreach ($ext_arr as $current) {
|
foreach ($ext_arr as $current) {
|
||||||
if (stristr($file,'.'.$current)){//含有扩展名
|
$current = trim($current);
|
||||||
|
if ($current !== '' && stristr($file,'.'.$current)){//含有扩展名
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue