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 #60227 (header() cannot detect the multi-line header with CR), \r before \n -..
Decoded Output download
--TEST--
Bug #60227 (header() cannot detect the multi-line header with CR),
before
--INI--
expose_php=0
default_charset=UTF-8
--FILE--
<?php
header("X-foo: e
foo");
echo 'foo';
?>
--EXPECTF--
Warning: Header may not contain more than a single header, new line detected in %s on line %d
foo
--EXPECTHEADERS--
Content-type: text/html; charset=UTF-8
Did this file decode correctly?
Original Code
--TEST--
Bug #60227 (header() cannot detect the multi-line header with CR), \r before \n
--INI--
expose_php=0
default_charset=UTF-8
--FILE--
<?php
header("X-foo: e\n foo");
echo 'foo';
?>
--EXPECTF--
Warning: Header may not contain more than a single header, new line detected in %s on line %d
foo
--EXPECTHEADERS--
Content-type: text/html; charset=UTF-8
Function Calls
header | 1 |
Stats
MD5 | 261e407cd7a755ec7c6723ea1f40c3b4 |
Eval Count | 0 |
Decode Time | 82 ms |