From: Felipe Pena Date: Fri, 4 Apr 2008 17:42:18 +0000 (+0000) Subject: MFB: Fixed bug #44591 (imagegif's filename parameter). X-Git-Tag: BEFORE_NEW_PARAMETER_PARSE~432 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=14b2f7606b37e1396d43fa5b9fb9eeeff15a7a23;p=php MFB: Fixed bug #44591 (imagegif's filename parameter). --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 3b894d3f79..8e881faddd 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -2812,7 +2812,7 @@ static void _php_image_output(INTERNAL_FUNCTION_PARAMETERS, int image_type, char } } - if ((argc == 2) || (argc > 2 && Z_STRLEN_PP(file))) { + if (argc >= 2 && Z_STRLEN_PP(file)) { PHP_GD_CHECK_OPEN_BASEDIR(fn, "Invalid filename"); fp = VCWD_FOPEN(fn, "wb");