1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-03-16 04:09:40 +01:00
Maksim N 113071af3b Obfuscates URI if there is an username and a password present (#1570)
* Obfuscates URI if there is an username and a password present

Lets assume that you include username and password into the URI. Currently, if the exception accrued the error message looks like so:

```
Client error: `POST http://username:secrect@hostname.com/somePath` resulted in a `400 Bad Request` response: ......,  (truncated...)
```

It lead to security issue because password is shown like it is.

This commit will hide the password (replace it with `***`).

* Make `obfuscateUri` private

* Improve tests
2016-09-12 17:07:23 +02:00
..
2015-03-26 00:30:14 -07:00
2015-04-19 20:39:53 -07:00
2015-09-06 12:51:06 -07:00