Skip to content

Commit

Permalink
Fixed PHP serving with relative path
Browse files Browse the repository at this point in the history
  • Loading branch information
razzie committed Nov 29, 2020
1 parent af892d6 commit 614cc04
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions handlerfactory.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ func (hf *HandlerFactory) newPHPHandler(hostname, hostPath, endpoint string) (ht
if err != nil {
return nil, err
}
endpoint, err = filepath.Abs(endpoint)
if err != nil {
return nil, err
}
var targetPath string
var sessHandler gofast.SessionHandler
if fi.IsDir() {
Expand Down

0 comments on commit 614cc04

Please sign in to comment.