Skip to content

caddyfile: reject blocks in log_skip directive#7056

Merged
mholt merged 1 commit intocaddyserver:masterfrom
IwatsukaYura:caddyfile_reject_blocks
Jun 10, 2025
Merged

caddyfile: reject blocks in log_skip directive#7056
mholt merged 1 commit intocaddyserver:masterfrom
IwatsukaYura:caddyfile_reject_blocks

Conversation

@IwatsukaYura
Copy link
Contributor

Fixes #7050

The log_skip directive was designed not to accept arguments.
Blocks should not be passed through, but there was a bug that allowed them to be passed through, so I fixed the code to detect blocks and return an error.
Thank you.

@CLAassistant
Copy link

CLAassistant commented Jun 9, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you!

@IwatsukaYura
Copy link
Contributor Author

Thank you for checking!!

@mholt mholt merged commit 0f209f6 into caddyserver:master Jun 10, 2025
20 checks passed
@francislavoie francislavoie added this to the v2.10.1 milestone Aug 22, 2025
mohammed90 pushed a commit to cedricziel/caddy that referenced this pull request Aug 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trivial: Reject config block for log_skip

4 participants