From: Ilia Alshanetsky Date: Sat, 6 Mar 2004 19:06:04 +0000 (+0000) Subject: Fixed bug #27460 (base64_decode() does not handle extra padding). X-Git-Tag: RELEASE_0_2_0~35 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=72a3bb18d1ffa13ba92802d5f4219d782228a6bb;p=php Fixed bug #27460 (base64_decode() does not handle extra padding). --- diff --git a/ext/standard/base64.c b/ext/standard/base64.c index 6c316a6689..583710dd53 100644 --- a/ext/standard/base64.c +++ b/ext/standard/base64.c @@ -188,7 +188,6 @@ PHPAPI unsigned char *php_base64_decode(const unsigned char *str, int length, in /* mop things up if we ended on a boundary */ if (ch == base64_pad) { switch(i % 4) { - case 0: case 1: efree(result); return NULL;