Browse Source

$argc was off by one in -f (fix bug #9289)

PHP-4.0.6
Zeev Suraski 25 years ago
parent
commit
6cd3b987b8
  1. 4
      sapi/cgi/cgi_main.c

4
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]);

Loading…
Cancel
Save