Index: trunk/phase3/includes/WebStart.php |
— | — | @@ -46,7 +46,6 @@ |
47 | 47 | $wgRUstart = array(); |
48 | 48 | } |
49 | 49 | unset( $IP ); |
50 | | -@ini_set( 'allow_url_fopen', 0 ); # For security |
51 | 50 | |
52 | 51 | # Valid web server entry point, enable includes. |
53 | 52 | # Please don't move this line to includes/Defines.php. This line essentially |
Index: trunk/phase3/includes/ExternalStoreHttp.php |
— | — | @@ -7,9 +7,7 @@ |
8 | 8 | class ExternalStoreHttp { |
9 | 9 | /* Fetch data from given URL */ |
10 | 10 | function fetchFromURL($url) { |
11 | | - ini_set( "allow_url_fopen", true ); |
12 | 11 | $ret = file_get_contents( $url ); |
13 | | - ini_set( "allow_url_fopen", false ); |
14 | 12 | return $ret; |
15 | 13 | } |
16 | 14 | |
Index: trunk/phase3/includes/templates/PHP4.php |
— | — | @@ -70,8 +70,7 @@ |
71 | 71 | if( function_exists( 'file_get_contents' ) ) { |
72 | 72 | $errorLevel = error_reporting(); |
73 | 73 | error_reporting( $errorLevel & !E_WARNING ); |
74 | | - |
75 | | - ini_set( 'allow_url_fopen', '1' ); |
| 74 | + |
76 | 75 | $s = file_get_contents( $testUrl ); |
77 | 76 | |
78 | 77 | error_reporting( $errorLevel ); |