Index: trunk/phase3/includes/upload/UploadFromUrl.php |
— | — | @@ -62,7 +62,7 @@ |
63 | 63 | return $this->initialize( |
64 | 64 | $desiredDestName, |
65 | 65 | $request->getVal( 'wpUploadFileURL' ), |
66 | | - $asyncdownload = false |
| 66 | + false |
67 | 67 | ); |
68 | 68 | } |
69 | 69 | |
Index: trunk/phase3/includes/upload/UploadBase.php |
— | — | @@ -66,7 +66,7 @@ |
67 | 67 | |
68 | 68 | $type = ucfirst( $type ); |
69 | 69 | $className = 'UploadFrom' . $type; |
70 | | - wfDebug( __METHOD__ . ": class name: $className" ); |
| 70 | + wfDebug( __METHOD__ . ": class name: $className\n" ); |
71 | 71 | if( !in_array( $type, self::$uploadHandlers ) ) |
72 | 72 | return null; |
73 | 73 | |
— | — | @@ -638,7 +638,7 @@ |
639 | 639 | wfDebug( __METHOD__ . ": checking for embedded scripts and HTML stuff\n" ); |
640 | 640 | |
641 | 641 | #check for HTML doctype |
642 | | - if( eregi( "<!DOCTYPE *X?HTML", $chunk ) ) |
| 642 | + if ( preg_match( "/<!DOCTYPE *X?HTML/i", $chunk ) ) |
643 | 643 | return true; |
644 | 644 | |
645 | 645 | /** |
— | — | @@ -951,7 +951,7 @@ |
952 | 952 | substr( $partname , 3, 3 ) == 'px-' || |
953 | 953 | substr( $partname , 2, 3 ) == 'px-' |
954 | 954 | ) && |
955 | | - ereg( "[0-9]{2}" , substr( $partname , 0, 2) ); |
| 955 | + preg_match( "/[0-9]{2}/" , substr( $partname , 0, 2 ) ); |
956 | 956 | } |
957 | 957 | |
958 | 958 | /** |