mail.add_x_header set to on in php.ini-production

From: Date: Fri, 27 Jan 2012 09:37:54 +0000
Subject: mail.add_x_header set to on in php.ini-production
Groups: php.internals 
Request: Send a blank email to internals+get-57532@lists.php.net to get a copy of this message
Is there any intention behind enabling the mail.add_x_header configuration directive in php.ini-production? http://lxr.php.net/opengrok/xref/PHP_TRUNK/php.ini-production#1018 This setting exposes (sort of) sensitive information about application deployments to third parties while IMO having no apparent advantage for production environments. The trivial patch to revert this behavior is attached in case you agree with me. - Martin

Index: php.ini-production =================================================================== --- php.ini-production (revision 322840) +++ php.ini-production (working copy) @@ -1016,7 +1016,7 @@ ;mail.force_extra_parameters = ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename -mail.add_x_header = On +mail.add_x_header = Off ; The path to a log file that will log all mail() calls. Log entries include ; the full path of the script, line number, To address and headers.
« previous php.internals (#57532) next »