]> granicus.if.org Git - php/commitdiff
Fixed bug #27460 (base64_decode() does not handle extra padding).
authorIlia Alshanetsky <iliaa@php.net>
Sat, 6 Mar 2004 19:06:04 +0000 (19:06 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sat, 6 Mar 2004 19:06:04 +0000 (19:06 +0000)
ext/standard/base64.c

index 6c316a6689e112d3a46c2ddd083fc25cfadbab5f..583710dd53c2067e3d40a13d8cb71229f1e75715 100644 (file)
@@ -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;