From 14b2f7606b37e1396d43fa5b9fb9eeeff15a7a23 Mon Sep 17 00:00:00 2001 From: Felipe Pena Date: Fri, 4 Apr 2008 17:42:18 +0000 Subject: [PATCH] MFB: Fixed bug #44591 (imagegif's filename parameter). --- ext/gd/gd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- 2.50.1