OK, so in my version 6.2.3 between 677 and 692 line # --
// Let's see if we want this type of file
if (isset($HTTP_POST_FILES['userfile'])) {
if ( ($HTTP_POST_FILES['userfile']['name'] != "none") && ($HTTP_POST_FILES['userfile']['name']) ){
if (preg_match("/\.(php|php3|php4|cgi|pl|exe|bat|reg)$/i",$HTTP_POST_FILES['userfile']['name'])) {
$html -> not_right("{$ubbt_lang['FILESALLOWED']}: {$config['allowfiles']}",$Cat);
}
$checkfile = str_replace(",","|",$config['allowfiles']);
if (!preg_match("/($checkfile)$/i",$HTTP_POST_FILES['userfile']['name'])) {
$html -> not_right("{$ubbt_lang['FILESALLOWED']}: {$config['allowfiles']}",$Cat);
}
}
if ( ($HTTP_POST_FILES['userfile']['size'] > $config['filesize']) ) {
$html -> not_right($ubbt_lang['FILE_TOO_BIG'],$Cat);
}
}
-- I will have to put another comparison with forum# 5 there, right?