diff options
| author | Zeev Suraski <zeev@php.net> | 2001-05-08 00:51:11 +0000 |
|---|---|---|
| committer | Zeev Suraski <zeev@php.net> | 2001-05-08 00:51:11 +0000 |
| commit | 6cd3b987b81efa8f71d9ca766bce1c77f8c22e3b (patch) | |
| tree | 489602bf54919a5364a5dc7887b26f9995035f82 /sapi/cgi/cgi_main.c | |
| parent | 7056620699644f369fd39507a0d8c7f13d6fe7a1 (diff) | |
| download | php-git-6cd3b987b81efa8f71d9ca766bce1c77f8c22e3b.tar.gz | |
$argc was off by one in -f (fix bug #9289)
Diffstat (limited to 'sapi/cgi/cgi_main.c')
| -rw-r--r-- | sapi/cgi/cgi_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
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<argc) { + strcat(s, "+"); + } } for (i = ap_php_optind, len = 0; i < argc; i++) { strcat(s, argv[i]); |
