caddy/modules
Wynn Wolf Arbor fa4cdde7d8
fastcgi: Make sure splitPos handles empty SplitPath correctly (#3491)
In commit f2ce81c, support for multiple path splitters was added. The
type of SplitPath changed from string to []string, and splitPos was
changed to loop through all values in SplitPath.

Before that commit, if SplitPath was empty, strings.Index returned 0 and
PATH_INFO was set correctly in buildEnv.

Currently, however, splitPos returns -1 for empty values of SplitPath,
behaving as if a split position could not be found at all. PATH_INFO is
then never set in buildEnv and remains empty.

Restore the old behaviour by explicitly checking whether SplitPath is
empty and returning 0 in splitPos.

Closes #3490
2020-06-12 10:07:59 -06:00
..
caddyhttp fastcgi: Make sure splitPos handles empty SplitPath correctly (#3491) 2020-06-12 10:07:59 -06:00
caddypki caddypki: Add 'acme_server' Caddyfile directive 2020-06-03 09:59:36 -06:00
caddytls httpcaddyfile: Add client_auth options to tls directive (#3335) 2020-06-05 12:19:36 -06:00
filestorage httpcaddyfile: Minor fixes to parsing storage options 2020-05-01 09:34:32 -06:00
logging caddyconfig: Minor internal and godoc tweaks 2020-05-29 11:49:25 -06:00
standard pki: Embedded ACME server (#3198) 2020-05-05 12:35:32 -06:00