Skip to content

Commit

Permalink
Merge 116fb1e into 777e7c7
Browse files Browse the repository at this point in the history
  • Loading branch information
Qrious committed Feb 21, 2020
2 parents 777e7c7 + 116fb1e commit c8f3d34
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/ACFProInstallerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,7 @@ private function appendLicenseKey($url): string
$queryParams['k'] = $this->getKeyFromEnv();
$c['query'] = http_build_query($queryParams);

$auth = (isset($c['user']) && isset($c['pass']))
? "{$c['user']}:{$c['pass']}@"
: "";
$port = (isset($c['port']) && !in_array($c['port'], ["443", "80"]))
? ":{$c['port']}"
: "";

return "{$c['scheme']}://{$auth}{$c['host']}{$port}{$c['path']}?{$c['query']}";
return "{$c['scheme']}://{$c['host']}{$c['path']}?{$c['query']}";
}

/**
Expand Down

0 comments on commit c8f3d34

Please sign in to comment.