function phutil_censor_credentials($string)Arcanist Technical Documentation ()
function phutil_censor_credentials($string)
Arcanist Technical Documentation ()
Attempt to censor any plaintext credentials from a string.
The major use case here is to censor usernames and passwords from command output. For example, when git fetch fails, the output includes credentials for authenticated HTTP remotes.
Parameters
string | $string | Some block of text. |
Return
string | A similar block of text, but with credentials that could be identified censored. |
- Defined
- src/utils/utils.php:1514