diff options
author | David Rothstein <drothstein@gmail.com> | 2013-12-25 15:51:29 -0500 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2013-12-25 15:51:29 -0500 |
commit | 76bc39ec84a1f4fcd9542c30707af91b5ca2fe93 (patch) | |
tree | 467877f627e20bc9f2a91e91667e6865494a4aee /includes/common.inc | |
parent | 998ec186953bb906e1aff426d70c7a56b2c14bfd (diff) | |
download | brdo-76bc39ec84a1f4fcd9542c30707af91b5ca2fe93.tar.gz brdo-76bc39ec84a1f4fcd9542c30707af91b5ca2fe93.tar.bz2 |
Issue #1414368 by coolestdude1, Dave Reid: Drupal_http_request does not handle basic auth correctly when dealing with blank passwords.
Diffstat (limited to 'includes/common.inc')
-rw-r--r-- | includes/common.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc index 6f85b5248..a64f0c555 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -929,7 +929,7 @@ function drupal_http_request($url, array $options = array()) { // If the server URL has a user then attempt to use basic authentication. if (isset($uri['user'])) { - $options['headers']['Authorization'] = 'Basic ' . base64_encode($uri['user'] . (isset($uri['pass']) ? ':' . $uri['pass'] : '')); + $options['headers']['Authorization'] = 'Basic ' . base64_encode($uri['user'] . (isset($uri['pass']) ? ':' . $uri['pass'] : ':')); } // If the database prefix is being used by SimpleTest to run the tests in a copied |