From e5ccae408e048193397146aa2a970bde2f0a33d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Loyet?= Date: Wed, 16 Nov 2011 00:21:38 +0000 Subject: [PATCH] - Added .phar to default authorized extensions --- NEWS | 1 + sapi/fpm/fpm/fpm_conf.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 12328df4179..1b40334ce78 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,7 @@ PHP NEWS - PHP-FPM SAPI: . Fixed bug #60179 (php_flag and php_value does not work properly). (fat) . Enhance error log when the primary script can't be open. FR #60199. (fat) + . Added .phar to default authorized extensions. (fat) - Intl: . Fixed bug #60192 (SegFault when Collator not constructed diff --git a/sapi/fpm/fpm/fpm_conf.c b/sapi/fpm/fpm/fpm_conf.c index 2a31d1a5110..61f066fc91a 100644 --- a/sapi/fpm/fpm/fpm_conf.c +++ b/sapi/fpm/fpm/fpm_conf.c @@ -973,7 +973,7 @@ static int fpm_conf_process_all_pools() /* {{{ */ /* security.limit_extensions */ if (!wp->config->security_limit_extensions) { - wp->config->security_limit_extensions = strdup(".php"); + wp->config->security_limit_extensions = strdup(".php .phar"); } if (*wp->config->security_limit_extensions) {