From 39f7b246de234c1421d0009009b4f5865548cd76 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 26 Jun 2005 18:49:40 +0000 Subject: [PATCH] live hack --- includes/HttpFunctions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php index 2daa3acf08..f292a41bf3 100644 --- a/includes/HttpFunctions.php +++ b/includes/HttpFunctions.php @@ -20,9 +20,10 @@ function wfGetHTTP( $url, $timeout = 'default' ) { } curl_setopt( $c, CURLOPT_TIMEOUT, $timeout ); ob_start(); - curl_exec(); + curl_exec( $c ); $text = ob_get_contents(); ob_end_clean(); + curl_close( $c ); } else { # Otherwise use file_get_contents, or its compatibility function from GlobalFunctions.php # This may take 3 minutes to time out, and doesn't have local fetch capabilities -- 2.20.1