http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88156
Revision: 88156
Author: jeroendedauw
Date: 2011-05-15 11:40:05 +0000 (Sun, 15 May 2011)
Log Message:
-----------
replacing reprecated eregi with preg_match
Modified Paths:
--------------
trunk/extensions/SemanticForms/specials/SF_UploadWindow.php
Modified: trunk/extensions/SemanticForms/specials/SF_UploadWindow.php
===================================================================
--- trunk/extensions/SemanticForms/specials/SF_UploadWindow.php 2011-05-15
11:29:49 UTC (rev 88155)
+++ trunk/extensions/SemanticForms/specials/SF_UploadWindow.php 2011-05-15
11:40:05 UTC (rev 88156)
@@ -1287,7 +1287,7 @@
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/", $chunk ) ) return true;
/**
* Internet Explorer for Windows performs some really stupid
file type
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs