diff options
Diffstat (limited to 'Auth/OpenID/BigMath.php')
-rw-r--r-- | Auth/OpenID/BigMath.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Auth/OpenID/BigMath.php b/Auth/OpenID/BigMath.php index 2f08055..251faee 100644 --- a/Auth/OpenID/BigMath.php +++ b/Auth/OpenID/BigMath.php @@ -106,7 +106,13 @@ class Auth_OpenID_MathLibrary { function base64ToLong($str) { - return $this->binaryToLong(base64_decode($str)); + $b64 = base64_decode($str); + + if ($b64 === false) { + return false; + } + + return $this->binaryToLong($b64); } function longToBase64($str) |