Skip to content

Commit

Permalink
Changing the auth value only if auth not is setted.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrbasso committed Nov 13, 2010
1 parent 777afb6 commit 1dfd3ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/http_socket.php
Expand Up @@ -442,7 +442,7 @@ public function url($url = null, $uriTemplate = null) {
*/
protected function _setAuth() {
if (empty($this->request['auth']['method'])) {
if (isset($this->request['uri']['user'], $this->request['uri']['pass'])) {
if (isset($this->request['uri']['user'], $this->request['uri']['pass']) && !isset($this->request['auth']['user'])) {
$this->request['auth'] = array(
'method' => 'Basic',
'user' => $this->request['uri']['user'],
Expand Down

0 comments on commit 1dfd3ce

Please sign in to comment.