From f6928fbd5bdd0815fd70c8b1d0a34abffa2336cd Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 26 Jul 2017 18:44:50 +0200 Subject: [PATCH] MB are assumed if no unit is specified --- root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Dl | 1 + 1 file changed, 1 insertion(+) diff --git a/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Dl b/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Dl index 7442c82..73fa574 100644 --- a/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Dl +++ b/root/etc/e-smith/templates/etc/php-fpm.d/www.conf/15Dl @@ -3,6 +3,7 @@ if ($PHP_VERSION eq '__PHP_VERSION__'){ if (($dl{'status'} || 'disabled') eq 'enabled'){ my $max_upload_size = ($dl{MaxUploadSize} || '4096'); + $max_upload_size .= 'M' if ($max_upload_size =~ m/^\d+$/); my $id = 'dl'; $OUT .=<<_EOF;