Skip to content

Commit d14a28e

Browse files
swissspidyCopilot
andauthored
Update src/Package_Command.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 17ce3e4 commit d14a28e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Package_Command.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ private function set_composer_auth_env_var() {
14491449

14501450
// HTTP Basic Authentication.
14511451
$http_basic_auth = getenv( 'HTTP_BASIC_AUTH' );
1452-
if ( ! isset( $composer_auth['http-basic'] ) && is_string( $http_basic_auth ) ) {
1452+
if ( ! isset( $composer_auth['http-basic'] ) && is_string( $http_basic_auth ) && '' !== $http_basic_auth ) {
14531453
$http_basic_auth_decoded = json_decode( $http_basic_auth, true /*assoc*/ );
14541454
if ( is_array( $http_basic_auth_decoded ) ) {
14551455
$composer_auth['http-basic'] = $http_basic_auth_decoded;

0 commit comments

Comments
 (0)