dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bc9032
)
live hack
author
Brion Vibber
<brion@users.mediawiki.org>
Sun, 26 Jun 2005 18:49:40 +0000
(18:49 +0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Sun, 26 Jun 2005 18:49:40 +0000
(18:49 +0000)
includes/HttpFunctions.php
patch
|
blob
|
history
diff --git
a/includes/HttpFunctions.php
b/includes/HttpFunctions.php
index
2daa3ac
..
f292a41
100644
(file)
--- 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