cvs: php4 /sapi/cgi cgi_main.c

From: Date: Thu, 10 May 2001 14:13:19 +0000
Subject: cvs: php4 /sapi/cgi cgi_main.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-5650@lists.php.net to get a copy of this message
zeev Thu May 10 07:13:19 2001 EDT Modified files: /php4/sapi/cgi cgi_main.c Log: @- Fixed a possible crash in the PHP CGI when no input file is @ specified (Zeev) Fixed bug 7822 Index: php4/sapi/cgi/cgi_main.c diff -u php4/sapi/cgi/cgi_main.c:1.106 php4/sapi/cgi/cgi_main.c:1.107 --- php4/sapi/cgi/cgi_main.c:1.106 Mon May 7 17:51:11 2001 +++ php4/sapi/cgi/cgi_main.c Thu May 10 07:13:18 2001 @@ -692,8 +692,7 @@ } if (cgi && !file_handle.handle.fp) { - file_handle.handle.fp = VCWD_FOPEN(argv0, "rb"); - if(!file_handle.handle.fp) { + if(!argv0 || !(file_handle.handle.fp = VCWD_FOPEN(argv0, "rb"))) { PUTS("No input file specified.\n"); php_request_shutdown((void *) 0); php_module_shutdown();

« previous php.cvs (#5650) next »