Skip to content

Validate .language subfield of IPP attributes#1653

Open
nmuggli wants to merge 2 commits into
OpenPrinting:masterfrom
nmuggli:validate-language-master
Open

Validate .language subfield of IPP attributes#1653
nmuggli wants to merge 2 commits into
OpenPrinting:masterfrom
nmuggli:validate-language-master

Conversation

@nmuggli

@nmuggli nmuggli commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

ippValidateAttribute will validate strings, but it doesn't validate the string.language subfield of IPP_TAG_TEXTLANG or IPP_TAG_NAMELANG. Add a helper method to validate these values using the same validation that is currently used for IPP_TAG_LANGUAGE.

Added some tests as well.

ippValidateAttribute will validate strings, but it doesn't validate the
string.language subfield of IPP_TAG_TEXTLANG or IPP_TAG_NAMELANG.  Add a
helper method to validate these values using the same validation that is
currently used for IPP_TAG_LANGUAGE.

Added some tests as well.
@nmuggli

nmuggli commented Jul 23, 2026

Copy link
Copy Markdown
Contributor Author

Since this isn't a clean cherry-pick into 2.4.x, I also created #1654. I'm not sure how you like to handle merges into 2.4.x.

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