'</li>' . $dlink2;
} elseif ( ( substr( $partname , 3, 3 ) == 'px-' || substr( $partname , 2, 3 ) == 'px-' )
- && ereg( "[0-9]{2}" , substr( $partname , 0, 2) ) )
+ && preg_match( "/[0-9]{2}/" , substr( $partname , 0, 2 ) ) )
{
# Check for filenames like 50px- or 180px-, these are mostly thumbnails
$nt_thb = Title::newFromText( substr( $partname , strpos( $partname , '-' ) +1 ) . '.' . $rawExtension );
wfDebug("SpecialUpload::detectScript: checking for embedded scripts and HTML stuff\n");
#check for HTML doctype
- if (eregi("<!DOCTYPE *X?HTML",$chunk)) return true;
+ if ( preg_match( "/<!DOCTYPE *X?HTML/i", $chunk ) ) return true;
/**
* Internet Explorer for Windows performs some really stupid file type