cvs: php-src(PHP_5_3) /ext/gd gd.c
| From: | Felipe Pena | Date: | Fri, 04 Apr 2008 17:42:18 +0000 |
| Subject: | cvs: php-src(PHP_5_3) /ext/gd gd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-49500@lists.php.net to get a copy of this message | ||
felipe Fri Apr 4 17:42:18 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/gd gd.c
Log:
MFB: Fixed bug #44591 (imagegif's filename parameter).
http://cvs.php.net/viewvc.cgi/php-src/ext/gd/gd.c?r1=1.312.2.20.2.32.2.3&r2=1.312.2.20.2.32.2.4&diff_format=u
Index: php-src/ext/gd/gd.c
diff -u php-src/ext/gd/gd.c:1.312.2.20.2.32.2.3 php-src/ext/gd/gd.c:1.312.2.20.2.32.2.4
--- php-src/ext/gd/gd.c:1.312.2.20.2.32.2.3 Mon Mar 10 22:12:34 2008
+++ php-src/ext/gd/gd.c Fri Apr 4 17:42:18 2008
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.312.2.20.2.32.2.3 2008/03/10 22:12:34 felipe Exp $ */
+/* $Id: gd.c,v 1.312.2.20.2.32.2.4 2008/04/04 17:42:18 felipe Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -2812,7 +2812,7 @@
}
}
- 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");