From 6cd3b987b81efa8f71d9ca766bce1c77f8c22e3b Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Tue, 8 May 2001 00:51:11 +0000 Subject: [PATCH] $argc was off by one in -f (fix bug #9289) --- sapi/cgi/cgi_main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 7b91edc0b8..c2cb43b212 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -630,7 +630,9 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine *s = '\0'; /* we are pretending it came from the environment */ if (script_file) { strcpy(s, script_file); - strcat(s, "+"); + if (ap_php_optind