From c15407d6079fc09a66f556380e25d007a5f7fdcb Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 17 May 2009 13:54:58 +0000 Subject: [PATCH] replace ereg(i) by preg_match since the former is deprecated since PHP 5.3 --- includes/specials/SpecialUpload.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialUpload.php b/includes/specials/SpecialUpload.php index 232064dfd8..317402dfd5 100644 --- a/includes/specials/SpecialUpload.php +++ b/includes/specials/SpecialUpload.php @@ -665,7 +665,7 @@ class UploadForm { '' . $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 ); @@ -1498,7 +1498,7 @@ wgUploadAutoFill = {$autofill}; wfDebug("SpecialUpload::detectScript: checking for embedded scripts and HTML stuff\n"); #check for HTML doctype - if (eregi("