cvs: php4 /pear/Crypt HCEMD5.php
| From: | Chuck Hagenbuch | Date: | Mon, 18 Dec 2000 19:44:02 +0000 |
| Subject: | cvs: php4 /pear/Crypt HCEMD5.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-3204@lists.php.net to get a copy of this message | ||
chagenbu Mon Dec 18 11:44:02 2000 EDT
Modified files:
/php4/pear/Crypt HCEMD5.php
Log:
Add some error checking/tolerance.
Index: php4/pear/Crypt/HCEMD5.php
diff -u php4/pear/Crypt/HCEMD5.php:1.2 php4/pear/Crypt/HCEMD5.php:1.3
--- php4/pear/Crypt/HCEMD5.php:1.2 Wed Nov 8 20:05:41 2000
+++ php4/pear/Crypt/HCEMD5.php Mon Dec 18 11:44:01 2000
@@ -216,6 +216,10 @@
*/
function decodeMimeSelfRand($data)
{
+ if (!strstr('#', $data)) {
+ return false;
+ }
+
list($rand, $data_crypt) = explode('#', $data);
if (isset($data_crypt)) {
$rand = base64_decode($rand);