Skip to content

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

Open
grandpig wants to merge 1 commit into
bitcoin:masterfrom
grandpig:master
Open

scripts: validate the first Comments-URI entry#2233
grandpig wants to merge 1 commit into
bitcoin:masterfrom
grandpig:master

Conversation

@grandpig

@grandpig grandpig commented Aug 3, 2026

Copy link
Copy Markdown

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.

Signed-off-by: grandpig <grandpig@outlook.com>
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.

1 participant