Bug->Req #80870 [Nab->Opn]: base64_decode: Support a "stream" of multiple encoded strings

From: Date: Wed, 17 Mar 2021 23:18:19 +0000
Subject: Bug->Req #80870 [Nab->Opn]: base64_decode: Support a "stream" of multiple encoded strings
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-232838@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=80870&edit=1

 ID:                 80870
 Updated by:         requinix@php.net
 Reported by:        bugs at jth dot net
-Summary:            base64_decode: Concatenated base64 blocks are
                     corrupted
+Summary:            base64_decode: Support a "stream" of multiple
                     encoded strings
-Status:             Not a bug
+Status:             Open
-Type:               Bug
+Type:               Feature/Change Request
 Package:            Strings related
 Operating System:   Linux
 PHP Version:        7.4.16
-Assigned To:        cmb
+Assigned To:        
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2021-03-17 20:50:20] bugs at jth dot net

I may agree, but I am relating to a world outside my control, not an ideal world.

------------------------------------------------------------------------
[2021-03-17 20:34:20] rtrtrtrtrt at dfdfdfdf dot dfd

argue whatever you want: "Concatenated base64 blocks" are idiotic

------------------------------------------------------------------------
[2021-03-17 20:32:13] bugs at jth dot net

The base64_decode is handling the padding character '=' incorrectly.
It can decode concatenated blocks if the statement 
i = 0;
is inserted into the code in a proper place.
However, adding a few more lines will handle it properly and I am currently testing this.

------------------------------------------------------------------------
[2021-03-17 16:27:17] cmb@php.net

base64_encode() is supposed to decode a base64 encoded string. Two
concatenated base64 encoded strings are not a base64 encoded
string.

------------------------------------------------------------------------
[2021-03-16 20:13:29] iguv dot jdzx at ghjj dot sddr

again: read the source of roundcubemail which is written in php and solved your issues

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=80870


--
Edit this bug report at https://bugs.php.net/bug.php?id=80870&edit=1


Thread (19 messages)

« previous php.bugs (#232838) next »