Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MDL-38168 Filelib: Curl class does not honour proxybypass option

  • Loading branch information...
commit bedd74bc226fdaa9f6f51ec3d8e553d9667a51cd 1 parent f29e62c
@sammarshallou sammarshallou authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/filelib.php
View
6 lib/filelib.php
@@ -3078,6 +3078,12 @@ private function apply_opt($curl, $options) {
}
curl_setopt($curl, CURLOPT_HTTPHEADER, $this->header);
+ // Bypass proxy (for this request only) if required.
+ if (!empty($this->options['CURLOPT_URL']) &&
+ is_proxybypass($this->options['CURLOPT_URL'])) {
+ unset($this->options['CURLOPT_PROXY']);
+ }
+
if ($this->debug){
echo '<h1>Options</h1>';
var_dump($this->options);
Please sign in to comment.
Something went wrong with that request. Please try again.