Validate the contents of fingerprint and keyhref fields in about/people/people.en.xml #1653

Open
opened 2020-10-01 01:07:35 +00:00 by repentinus · 2 comments
Owner

fingerprint

  • automatically remove whitespace and convert to uppercase
  • check the content is 40 hex digits before including it in the HTML

keyhref

  • HTTPS URL
  • query parameters do not contain a short or long key ID
  • query parameters do not contain an e-mail address
# fingerprint * automatically remove whitespace and convert to uppercase * check the content is 40 hex digits before including it in the HTML # keyhref * HTTPS URL * query parameters do not contain a short or long key ID * query parameters do not contain an e-mail address
repentinus added the xsleasypriority/low labels 2020-10-01 01:07:35 +00:00
Owner

Sorry, I'm not sure I understand what this issue is about. Do you expect the XSL matching these fields against some regex?

And if so, what should happen if the match was unsuccessful?

Sorry, I'm not sure I understand what this issue is about. Do you expect the XSL matching these fields against some regex? And if so, what should happen if the match was unsuccessful?
Author
Owner

Yes. The simplest option is to simply omit the fingerprint or the link to the key (as appropriate) from the HTML output if the contents do not match the requirements.

Yes. The simplest option is to simply omit the fingerprint or the link to the key (as appropriate) from the HTML output if the contents do not match the requirements.
Sign in to join this conversation.