Changeset 13988
- Timestamp:
- 08/21/2024 01:40:45 AM (8 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/mu-plugins/pub/wporg-well-known.php
r13986 r13988 24 24 } ); 25 25 26 /** 27 * Support for https://securitytxt.org/ 28 */ 26 29 function security_txt() { 30 /* 31 * Set the expiry date to December 31st / next June 30th, whichever has 6~12 months expiry. 32 * The RFC recommends that the expiry be less than a year in the future. 33 */ 34 $expires = strtotime( 'Dec 31' ); 35 if ( gmdate('z') > 182 ) { 36 $expires = strtotime( 'Jun 30', $expires + WEEK_IN_SECONDS ); 37 } 38 27 39 header( 'Content-Type: text/plain') 28 40 ?> 29 41 Contact: https://hackerone.com/wordpress 30 Expires: 2024-12-31T15:00:00.000Z42 Expires: <?php echo gmdate( 'Y-m-d', $expires ); ?>T15:00:00.000Z 31 43 Acknowledgments: https://hackerone.com/wordpress/thanks 32 44 Canonical: https://wordpress.org/.well-known/security.txt 33 45 Policy: https://make.wordpress.org/core/handbook/testing/reporting-security-vulnerabilities/ 46 Preferred-Languages: en 34 47 35 48 # The above contact is for reporting security issues in core WordPress software itself.
Note: See TracChangeset
for help on using the changeset viewer.