xref: /PHP-8.2/sapi/cgi/tests/bug81518a.phpt (revision 36576936)
1--TEST--
2Bug #81518 (Header injection via default_mimetype / default_charset)
3--CGI--
4--FILE--
5<?php
6ini_set(
7    "default_mimetype",
8    "text/html;charset=ISO-8859-1\r\nContent-Length: 31\r\n\r\n" .
9    "Lets smuggle a HTTP response.\r\n"
10);
11?>
12--EXPECTHEADERS--
13Content-type: text/html; charset=UTF-8
14--EXPECT--
15