We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4304bce commit d477c2cCopy full SHA for d477c2c
lib/remote/HttpCommandExecutor.php
@@ -114,11 +114,13 @@ public function __construct($url) {
114
115
// Get credentials from $url (if any)
116
preg_match("/^(https?:\/\/)(.*):(.*)@(.*?)/U", $url, $matches);
117
- $url = $matches[1].$matches[4];
118
- $auth_creds = $matches[2].":".$matches[3];
+ if(array_key_exists($matches[4])){
+ $url = $matches[1].$matches[4];
119
+ $auth_creds = $matches[2].":".$matches[3];
120
+ }
121
print "url:\n$url\n";
- //print "matches:\n";
- //print_r($matches);
122
+ print "matches:\n";
123
+ print_r($matches);
124
125
$this->url = $url;
126
$this->curl = curl_init();
0 commit comments