(name string)
| 325 | } |
| 326 | |
| 327 | func (p *prefixedDir) Open(name string) (http.File, error) { |
| 328 | destPath, _, ok, err := context.SafeFilename(p.prefix, name) |
| 329 | if err != nil { |
| 330 | return nil, err |
| 331 | } |
| 332 | if !ok { |
| 333 | return nil, http.ErrMissingFile // unsafe. |
| 334 | } |
| 335 | |
| 336 | // name = path.Join(destPath, filename) |
| 337 | return p.fs.Open(destPath) |
| 338 | } |
| 339 | |
| 340 | type partyConfiguratorMiddleware struct { |
| 341 | handlers []Handler |
nothing calls this directly
no test coverage detected