bugfixes from testing

This commit is contained in:
Travis J Parker 2022-06-17 10:33:27 +02:00
parent 505ad17819
commit c77111e512
1 changed files with 2 additions and 2 deletions

View File

@ -171,9 +171,9 @@ func prepareCGICommand(config Config, scriptPath string) []string {
}
base := filepath.Join(config.DocBase, config.HomeDocBase) + string(filepath.Separator)
if strings.HasPrefix(scriptPath, base) {
segments := filepath.SplitList(scriptPath[len(base):])
segments := strings.Split(scriptPath[len(base):], string(filepath.Separator))
if len(segments) > 1 {
substitutions["{user}"] = segments[0][1:]
substitutions["{user}"] = segments[0]
}
}