Make sure CGI files are world-readable as well as world-executable.

This commit is contained in:
Solderpunk 2020-07-01 16:04:48 +02:00
parent f291e5863c
commit 36378eb1c6
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ func handleCGI(config Config, path string, cgiPath string, URL *url.URL, log *Lo
break
} else if info.IsDir() {
continue
} else if info.Mode().Perm()&0111 == 0111 {
} else if info.Mode().Perm()&0555 == 0555 {
matched = true
break
}