// Check if it is an allowed type. if ( !in_array( $sType, array(’File’,’Image’,’Flash’,’Media’) ) ) SendResults( 1, ’’, ’’, ’Invalid type specified’ ) ;
// Get the allowed and denied extensions arrays. $arAllowed = $Config[’AllowedExtensions’][$sType] ; $arDenied = $Config[’DeniedExtensions’][$sType] ;
// Check if it is an allowed extension. if ( ( count($arAllowed) > 0 && !in_array( $sExtension, $arAllowed ) ) || ( count($arDenied) > 0 && in_array( $sExtension, $arDenied ) ) ) SendResults( ’202’ ) ;
程序从
Fckeditor <=2.4.2 For php 任意上传文件漏洞 _ 安全中国www.anqn.com _ 全球最大中文黑客门户