Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #34214 (base64_decode() does not properly ignore whitespace) --FILE-- <?php $..

Decoded Output download

--TEST--
Bug #34214 (base64_decode() does not properly ignore whitespace)
--FILE--
<?php
$txt = 'Zm9vYmFyIG
 Zvb2Jhcg==';
echo base64_decode($txt), "
";
?>
--EXPECT--
foobar foobar

Did this file decode correctly?

Original Code

--TEST--
Bug #34214 (base64_decode() does not properly ignore whitespace)
--FILE--
<?php
$txt = 'Zm9vYmFyIG
 Zvb2Jhcg==';
echo base64_decode($txt), "\n";
?>
--EXPECT--
foobar foobar

Function Calls

base64_decode 1

Variables

$txt Zm9vYmFyIG Zvb2Jhcg==

Stats

MD5 21d1da0fe3acec01653205cde95d7b5f
Eval Count 0
Decode Time 87 ms