Skip to content

Optional Argument Validation Fails for ® #151

Description

@robmeek

I had another instance of #99, this time with a trader name containing the registered trademark character: ®

I asked ChatGPT for some other characters commonly used in the west which are marked as invalid by the current regex. It came up with:

    Currency symbols: $, €, £, ¥, etc.
    Special characters: @, #, %, *, !, ?, ;, :, etc.
    Quotation marks: ", ', ``, '', etc.
    Brackets: [, ], {, }, <, >
    Other punctuation marks: _, =, ~, ^, , |, etc.

With sincere respect and gratefulness for your work on this library, the VIES service is an open, public sector API which is surely protected from the kinds of naive attacks which the regex is intended to prevent. I think this library could remove this layer of validation. ($vies->validateArgument) I can’t see that it would be irresponsible to do so. Or am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions