caddy/caddyconfig/caddyfile
Y.Horie d6d7511699
httpcaddyfile: Warn on importing empty file; skip dotfiles (#5320)
* httpcaddyfile: Change the parse rules when empty file or dotfile with a glob.

* Fixes #5295
* Empty file should just log a warning, and result in no tokens.
* The last segment of the path is '*', it should skip any dotfiles.
* The last segment of the path is '.*', it should read all dotfiles in a dir.

* httpcaddyfile: Regard empty files as import files which include only white space.
2023-01-21 10:22:36 -07:00
..
testdata httpcaddyfile: Warn on importing empty file; skip dotfiles (#5320) 2023-01-21 10:22:36 -07:00
adapter.go chore: Bump up to Go 1.19, minimum 1.18 (#4925) 2022-08-02 16:39:09 -04:00
dispenser.go map: Coerce val to string, fix #4987 2022-09-01 21:15:44 -06:00
dispenser_test.go Make file modes consistent 2022-04-21 15:06:55 -06:00
formatter.go Fix #4169 (correct e6c58fd) 2022-09-15 14:13:58 -06:00
formatter_fuzz.go core: Windows service integration (#4790) 2022-07-29 14:06:54 -06:00
formatter_test.go caddyfile: Copy input before parsing (fix #4422) 2021-11-15 14:41:19 -07:00
importgraph.go caddyfile: reject cyclic imports (#4022) 2021-04-09 12:06:25 -06:00
lexer.go httpcaddyfile: Add shortcut for expression matchers (#4976) 2022-09-01 23:12:37 -04:00
lexer_fuzz.go core: Windows service integration (#4790) 2022-07-29 14:06:54 -06:00
lexer_test.go Make file modes consistent 2022-04-21 15:06:55 -06:00
parse.go httpcaddyfile: Warn on importing empty file; skip dotfiles (#5320) 2023-01-21 10:22:36 -07:00
parse_test.go httpcaddyfile: Warn on importing empty file; skip dotfiles (#5320) 2023-01-21 10:22:36 -07:00