mirror of
https://tildegit.org/solderpunk/molly-brown
synced 2024-05-27 01:26:06 +02:00
bugfixes from testing
This commit is contained in:
parent
505ad17819
commit
c77111e512
|
@ -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]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue