cvs: php4 /sapi/cgi cgi_main.c
| From: | Zeev Suraski | Date: | Tue, 08 May 2001 00:51:11 +0000 |
| Subject: | cvs: php4 /sapi/cgi cgi_main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-5592@lists.php.net to get a copy of this message | ||
zeev Mon May 7 17:51:11 2001 EDT
Modified files:
/php4/sapi/cgi cgi_main.c
Log:
$argc was off by one in -f (fix bug #9289)
Index: php4/sapi/cgi/cgi_main.c
diff -u php4/sapi/cgi/cgi_main.c:1.105 php4/sapi/cgi/cgi_main.c:1.106
--- php4/sapi/cgi/cgi_main.c:1.105 Tue May 1 00:16:57 2001
+++ php4/sapi/cgi/cgi_main.c Mon May 7 17:51:11 2001
@@ -630,7 +630,9 @@
*s = '\0'; /* we are pretending it came from the environment */
if (script_file) {
strcpy(s, script_file);
- strcat(s, "+");
+ if (ap_php_optind<argc) {
+ strcat(s, "+");
+ }
}
for (i = ap_php_optind, len = 0; i < argc; i++) {
strcat(s, argv[i]);