Changeset 14583
- Timestamp:
- 10/31/2025 05:52:50 AM (3 months ago)
- Location:
- sites/trunk/api.wordpress.org/public_html/dotorg/slack
- Files:
-
- 5 edited
-
announce.php (modified) (1 diff)
-
committers.php (modified) (1 diff)
-
security-team.php (modified) (1 diff)
-
subgroup.php (modified) (1 diff)
-
trac-bot.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/dotorg/slack/announce.php
r14280 r14583 30 30 // WEBHOOK_TOKEN_1, WEBHOOK_TOKEN_2, etc. 31 31 while ( defined( __NAMESPACE__ . '\\WEBHOOK_TOKEN_' . ++$i ) ) { 32 if ( constant( __NAMESPACE__ . '\\WEBHOOK_TOKEN_' . $i ) === $_POST['token']) {32 if ( hash_equals( constant( __NAMESPACE__ . '\\WEBHOOK_TOKEN_' . $i ), $_POST['token'] ) ) { 33 33 run( $_POST ); 34 34 } -
sites/trunk/api.wordpress.org/public_html/dotorg/slack/committers.php
r1787 r14583 7 7 require dirname( dirname( __DIR__ ) ) . '/includes/slack-config.php'; 8 8 9 if ( $_POST['token'] !== WEBHOOK_TOKEN) {9 if ( ! hash_equals( WEBHOOK_TOKEN, $_POST['token'] ) ) { 10 10 return; 11 11 } -
sites/trunk/api.wordpress.org/public_html/dotorg/slack/security-team.php
r3587 r14583 63 63 64 64 // Confirm it came from the Trac server. 65 if ( $_GET['token'] !== API_TOKEN) {65 if ( ! hash_equals( API_TOKEN, $_GET['token'] ?? '' ) ) { 66 66 exit; 67 67 } -
sites/trunk/api.wordpress.org/public_html/dotorg/slack/subgroup.php
r13231 r14583 48 48 49 49 // Confirm it came from Slack. 50 if ( $_POST['token'] !== WEBHOOK_TOKEN) {50 if ( ! hash_equals( WEBHOOK_TOKEN, $_POST['token'] ?? '' ) ) { 51 51 die( "Invalid Token" ); 52 52 } -
sites/trunk/api.wordpress.org/public_html/dotorg/slack/trac-bot.php
r11582 r14583 12 12 13 13 // Verify it came from Slack. 14 if ( ! isset( $_GET['token'] ) || $_GET['token'] !== URL_SECRET__TRAC_BOT) {14 if ( ! hash_equals( URL_SECRET__TRAC_BOT, $_GET['token'] ?? '' ) ) { 15 15 return; 16 16 }
Note: See TracChangeset
for help on using the changeset viewer.