Skip to content

scripts: validate the first Comments-URI entry - #2233

Merged
murchandamus merged 1 commit into
bitcoin:masterfrom
grandpig:master
Aug 15, 2026
Merged

scripts: validate the first Comments-URI entry#2233
murchandamus merged 1 commit into
bitcoin:masterfrom
grandpig:master

Conversation

@grandpig

@grandpig grandpig commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

The Comments-URI validation condition was reversed when the field was made optional.

$found{'Comments-URI'} is incremented only after the current header line has been processed. As a result, the existing condition skipped validation for the first entry and applied it to continuation entries instead.

This allowed a nonstandard first Comments-URI to pass, while rejecting a valid external discussion URI following the standard Comments wiki URI.

Restore the original condition so that only the first entry must match:

https://github.com/bitcoin/bips/wiki/Comments:BIP-NNNN

Additional continuation entries remain unrestricted.

@murchandamus murchandamus added the CI label Aug 5, 2026
Comment thread scripts/buildtable.pl
Signed-off-by: grandpig <grandpig@outlook.com>
@grandpig

Copy link
Copy Markdown
Contributor Author

@murchandamus Thank you for your reply. Please review it again.

@murchandamus murchandamus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@murchandamus
murchandamus merged commit d923cb8 into bitcoin:master Aug 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants