Changeset 11636
- Timestamp:
- 03/04/2022 01:36:09 AM (21 months ago)
- Location:
- sites/trunk/api.wordpress.org/public_html/dotorg/helpscout
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/dotorg/helpscout/common.php
r10957 r11636 7 7 // function to verify signature from HelpScout 8 8 function isFromHelpScout($data, $signature) { 9 if ( ! defined( 'HELPSCOUT_SECRET_KEY' ) ) { 10 return false; 11 } 12 9 13 $calculated = base64_encode( hash_hmac( 'sha1', $data, HELPSCOUT_SECRET_KEY, true ) ); 14 10 15 return hash_equals( $signature, $calculated ); 11 16 }
Note: See TracChangeset
for help on using the changeset viewer.