We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8c822f commit 3a8d989Copy full SHA for 3a8d989
local/php/envs.go
@@ -38,7 +38,7 @@ func (p *Server) generateEnv(req *http.Request) map[string]string {
38
39
pathInfo := req.URL.Path
40
if pos := strings.Index(strings.ToLower(pathInfo), ".php"); pos != -1 {
41
- file := pathInfo[:pos+4]
+ file := filepath.Clean(pathInfo[:pos+4])
42
if _, err := os.Stat(filepath.Join(p.documentRoot, file)); err == nil {
43
scriptName = file
44
pathInfo = pathInfo[pos+4:]
0 commit comments