diff options
author | Scott <scott@paragonie.com> | 2016-03-24 16:35:02 -0400 |
---|---|---|
committer | Scott <scott@paragonie.com> | 2016-03-24 16:35:02 -0400 |
commit | 5692701249ab48dd965eae5c2b9c37df5aaf78b3 (patch) | |
tree | 574d6e69c192231c7f0509bc5f06d2813c4d3d2a | |
parent | 29383c444b0edc52ed315ef92fc4a5d66baabb1a (diff) | |
download | constant_time_encoding-5692701249ab48dd965eae5c2b9c37df5aaf78b3.zip constant_time_encoding-5692701249ab48dd965eae5c2b9c37df5aaf78b3.tar.gz constant_time_encoding-5692701249ab48dd965eae5c2b9c37df5aaf78b3.tar.bz2 |
Return false when non-base64 chars are used
-rw-r--r-- | src/Base64.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Base64.php b/src/Base64.php index f45101a..e905458 100644 --- a/src/Base64.php +++ b/src/Base64.php @@ -120,9 +120,7 @@ abstract class Base64 implements EncoderInterface } } if ($err !== 0) { - throw new \RangeException( - 'base64decode() only expects characters in the correct base64 alphabet' - ); + return false; } return $dest; } |