Contact information should use URI scheme

Created on 19 October 2021, over 3 years ago
Updated 1 June 2023, almost 2 years ago

Problem/Motivation

The contact information for an email address and telephone number should use the mailto and tel schemes respectively, see RFC section 3.5.3.

Steps to reproduce

Install, edit the configuration to add Email=security@example.com and Phone=+1-201-555-0123. The resulting security.txt file shows as:

Contact: security@example.com
Contact: +1-201-555-0123

It should be:

Contact: mailto:security@example.com
Contact: tel:+1-201-555-0123

Proposed resolution

Insert the scheme in code, as per attached patch.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024