GoogleAuthenticator
GoogleAuthenticator copied to clipboard
rawurlencode the name
The name of the account must be encoded with rawurlencode(). Otherwise it will fail to add on iOS devices if the name contains a space for example.
This PR is no good - the $name parameter is being double-escaped.
A better solution would be to update all of the urlencode()
calls to use rawurlencode()
, instead.